/* GoSheet iOS — silk / macOS-inspired landing */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --purple: #7c5cff;
  --pink: #ff6bcb;
  --success: #30d158;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
  --glass: rgba(28, 28, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Silk background */
.ios-silk {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ios-silk__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: silk-float 18s var(--ease) infinite alternate;
}
.ios-silk__orb--1 {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
}
.ios-silk__orb--2 {
  width: 45vw;
  height: 45vw;
  top: 20%;
  right: -12%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: -6s;
}
.ios-silk__orb--3 {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  left: 25%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation-delay: -12s;
}
[data-theme="dark"] .ios-silk__orb { opacity: 0.35; }

@keyframes silk-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.08); }
}

/* Nav — macOS glass bar */
.ios-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 20px 0;
}
.ios-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.ios-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.ios-nav__brand:hover { text-decoration: none; }
.ios-nav__logo {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.ios-nav__logo .ios-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ios-nav__logo .ios-logo--dark {
  display: none;
}
[data-theme="dark"] .ios-nav__logo .ios-logo--light {
  display: none;
}
[data-theme="dark"] .ios-nav__logo .ios-logo--dark {
  display: block;
}
.ios-nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.ios-nav__link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.ios-nav__link:hover,
.ios-nav__link.is-active {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}
.ios-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ios-nav__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--accent-soft);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ios-nav__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}
.ios-nav__mobile {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ios-nav__mobile[hidden] { display: none !important; }
.ios-nav__mobile a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.ios-nav__mobile a:hover { background: var(--accent-soft); text-decoration: none; }

.ios-theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.ios-theme-toggle:hover { background: var(--accent-soft); color: var(--text); }
.ios-theme-toggle__moon { display: none; }
[data-theme="dark"] .ios-theme-toggle__sun { display: none; }
[data-theme="dark"] .ios-theme-toggle__moon { display: block; }

/* Buttons */
.ios-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.ios-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ios-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}
[data-theme="dark"] .ios-btn--primary {
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.4);
}
.ios-btn--ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.ios-btn--sm { padding: 8px 16px; font-size: 13px; }
.ios-btn--appstore {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.ios-btn--appstore:hover { transform: scale(1.02); }
.ios-btn--appstore svg { height: 52px; width: auto; display: block; }
[data-theme="dark"] .ios-appstore-badge rect { fill: #fff; }
[data-theme="dark"] .ios-appstore-badge path { fill: #000; }
[data-theme="dark"] .ios-appstore-badge__text { fill: #000; }

/* Layout */
.ios-main { min-height: calc(100vh - 200px); }
.ios-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.ios-hero {
  padding: 48px 0 80px;
  text-align: center;
}
.ios-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  animation: fade-up 0.8s var(--ease) both;
}
.ios-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}
.ios-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: fade-up 0.8s var(--ease) 0.1s both;
}
.ios-hero h1 span {
  background: linear-gradient(120deg, var(--text) 30%, var(--purple) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .ios-hero h1 span {
  background: linear-gradient(120deg, #fff 20%, #a78bfa 60%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.ios-hero__lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--text-muted);
  animation: fade-up 0.8s var(--ease) 0.2s both;
}
.ios-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  animation: fade-up 0.8s var(--ease) 0.3s both;
}
.ios-hero__meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  animation: fade-up 0.8s var(--ease) 0.4s both;
}

/* Phone mockup */
.ios-hero__visual {
  margin-top: 56px;
  position: relative;
  animation: fade-up 1s var(--ease) 0.35s both;
}
.ios-phone {
  position: relative;
  width: min(280px, 72vw);
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a2a2e 0%, #0d0d0f 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 100px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.ios-phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.ios-phone__screen {
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: linear-gradient(160deg, #1a1a2e 0%, #5956e9 40%, #0a84ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
  color: #fff;
  text-align: center;
}
.ios-phone__screen strong {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.ios-phone__screen p {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.85;
}
.ios-phone__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
  width: 100%;
}
.ios-phone__cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.ios-hero__glow {
  position: absolute;
  inset: 20% 10% -20%;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

/* Features */
.ios-section {
  padding: 64px 0;
}
.ios-section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.ios-section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}
.ios-section__head p { margin: 0; color: var(--text-muted); }
.ios-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ios-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.ios-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.ios-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--accent-soft);
}
.ios-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.ios-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Trending pills */
.ios-trend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.ios-trend__pill {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.ios-trend__pill--hot {
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.3);
  background: var(--accent-soft);
}

/* CTA band */
.ios-cta-band {
  margin: 40px 0 80px;
  padding: 56px 32px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(89, 86, 233, 0.35);
}
.ios-cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.ios-cta-band p { margin: 0 0 24px; opacity: 0.9; }
.ios-cta-band .ios-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

/* Legal pages */
.ios-legal-hero {
  padding: 40px 0 24px;
  text-align: center;
}
.ios-legal-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.ios-legal-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.ios-legal {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.ios-legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.ios-legal h2:first-child { margin-top: 0; }
.ios-legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}
.ios-legal p,
.ios-legal li {
  color: var(--text-muted);
  font-size: 15px;
}
.ios-legal ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.ios-legal strong { color: var(--text); }

/* Footer */
.ios-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.ios-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.ios-footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ios-footer__brand strong { display: block; font-size: 15px; }
.ios-footer__brand p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.ios-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.ios-footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.ios-footer__links a:hover { color: var(--text); text-decoration: none; }
.ios-footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .ios-nav__links { display: none; }
  .ios-nav__menu-btn { display: flex; }
  .ios-nav__actions .ios-btn--sm { display: none; }
  .ios-legal { padding: 24px; margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .ios-silk__orb { animation: none !important; transition: none !important; }
}
