/* =====================
   Custom Properties
   ===================== */
:root {
  --black: #0D0D0D;
  --ink: #1A1A1A;
  --cream: #F7F3EC;
  --cream-dark: #EDE8DF;
  --tan: #C4A882;
  --tan-dark: #8B6F47;
  --hero-bg: #080808;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --container-max: 1100px;
  --section-pad: 100px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.76, 0, 0.24, 1);
}

/* =====================
   Reset
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

svg { display: block; }

/* =====================
   Container
   ===================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

/* =====================
   Navigation
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.nav.scrolled {
  background: rgba(247, 243, 236, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  transition: color 0.4s ease;
}

.nav.scrolled .nav-logo,
.page-inner .nav-logo {
  color: var(--ink);
}

.logo-icon {
  width: 18px;
  height: 25px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.75);
  transition: color 0.3s ease;
}

.nav.scrolled .nav-links a,
.page-inner .nav-links a {
  color: rgba(26, 26, 26, 0.65);
}

.nav-links a:hover {
  color: var(--cream);
}

.nav.scrolled .nav-links a:hover,
.page-inner .nav-links a:hover {
  color: var(--tan-dark);
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo mark in hero */
.hero-logo {
  margin-bottom: 36px;
}

.logo-icon-large {
  width: 52px;
  height: 74px;
  margin: 0 auto;
  color: var(--cream);
}

.logo-path-anim {
  transform-origin: 50% 100%;
  animation: inkDrop 1.4s var(--ease-out) both;
}

@keyframes inkDrop {
  0% {
    opacity: 0;
    transform: scaleY(0) scaleX(0.6);
  }
  60% {
    transform: scaleY(1.06) scaleX(0.97);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
  }
}

/* Wordmark */
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  letter-spacing: 0.14em;
  color: var(--cream);
  margin-bottom: 28px;
  line-height: 1;
}

/* Tagline + brushstroke */
.hero-tagline-wrap {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(247, 243, 236, 0.88);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.hero-tagline em {
  font-style: italic;
  color: var(--tan);
}

/* Animated brushstroke SVG */
.brushstroke-line {
  width: 100%;
  max-width: 280px;
  overflow: visible;
}

.brush-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawBrush 1.8s var(--ease-out) both 1s;
}

@keyframes drawBrush {
  to { stroke-dashoffset: 0; }
}

.hero-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(247, 243, 236, 0.45);
  margin-bottom: 52px;
}

.hero-cta {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid rgba(247, 243, 236, 0.3);
  color: rgba(247, 243, 236, 0.85);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.hero-cta:hover {
  background: rgba(247, 243, 236, 0.07);
  border-color: rgba(247, 243, 236, 0.6);
  color: var(--cream);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(247, 243, 236, 0.35);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint svg {
  width: 18px;
  height: 30px;
}

.scroll-dot {
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.4; }
}

/* =====================
   Sections — Shared
   ===================== */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan-dark);
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 56px;
}

/* =====================
   About
   ===================== */
.about {
  background: var(--cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 24px;
}

.about-text p:last-child { margin-bottom: 0; }

/* Decorative stroke */
.deco-brush {
  width: 100%;
  height: auto;
  color: var(--ink);
}

.deco-brush path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

/* =====================
   Apps Section
   ===================== */
.apps-section {
  background: var(--cream-dark);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.055);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.11);
}

.app-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.app-icon-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--ink);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.app-icon-wrap svg {
  width: 38px;
  height: 38px;
}

.app-info h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-subtitle {
  font-size: 0.8125rem;
  color: var(--tan-dark);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.app-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 16px;
}

.app-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 20px;
  color: var(--tan-dark);
}

.app-card-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-outline {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(26, 26, 26, 0.3);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
  color: var(--tan-dark);
  border-color: var(--tan-dark);
}

.btn-appstore-sm {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-appstore-sm:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-appstore-sm .as-small {
  font-size: 9px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  font-weight: 400;
}

.btn-appstore-sm .as-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: -apple-system, sans-serif;
}

/* =====================
   Contact
   ===================== */
.contact {
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(196, 168, 130, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact .section-label {
  color: var(--tan);
  opacity: 0.7;
}

.contact .section-header h2 {
  color: var(--cream);
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(247, 243, 236, 0.5);
  margin-bottom: 36px;
  max-width: 440px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 243, 236, 0.25);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover {
  color: var(--tan);
  border-color: var(--tan);
}

/* =====================
   Footer
   ===================== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(247, 243, 236, 0.07);
  color: var(--cream);
  padding: 52px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer .nav-logo {
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.35;
  padding-left: 28px;
  font-family: var(--font-display);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 236, 0.07);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  opacity: 0.3;
  letter-spacing: 0.04em;
}

/* =====================
   Scroll Reveal
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.5s; }

/* =====================
   Inner Page — App Hero
   ===================== */
.page-inner {
  background: var(--cream);
}

.app-hero {
  padding: calc(var(--nav-height) + 64px) 0 72px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.app-hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.app-hero-icon {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.app-hero-icon svg {
  width: 100%;
  height: 100%;
}

.app-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-dark);
  margin-bottom: 8px;
}

.app-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.app-hero-sub {
  font-size: 1.0625rem;
  color: rgba(26, 26, 26, 0.45);
  margin-bottom: 20px;
}

.app-hero-desc {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(26, 26, 26, 0.7);
  max-width: 500px;
  margin-bottom: 32px;
}

.app-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: 11px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-download:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn-download .as-small {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.btn-download .as-main {
  font-size: 15px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
}

.btn-link {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.55);
  font-weight: 400;
  transition: color 0.3s ease;
}

.btn-link:hover { color: var(--tan-dark); }

/* =====================
   Features
   ===================== */
.features {
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 48px 40px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--tan-dark);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.65);
}

/* =====================
   Phone Mockup
   ===================== */
.screenshots {
  background: var(--cream-dark);
}

.screenshots-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: #111;
  border-radius: 48px;
  padding: 12px;
  width: 260px;
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-notch {
  width: 90px;
  height: 28px;
  background: #111;
  border-radius: 14px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #0a0a1a;
  border-radius: 38px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.phone-camera-area {
  flex: 1;
  background: #0f0f22;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}

/* Simulated camera grid lines */
.phone-camera-area::before,
.phone-camera-area::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.04);
}

.phone-camera-area::before {
  left: 33%;
  top: 0; bottom: 0;
  width: 1px;
  box-shadow: 67% 0 0 0 rgba(255,255,255,0.04);
}

.phone-camera-area::after {
  top: 33%;
  left: 0; right: 0;
  height: 1px;
  box-shadow: 0 67% 0 0 rgba(255,255,255,0.04);
}

.word-box {
  position: relative;
  z-index: 2;
  border: 2px solid rgba(196, 168, 130, 0.9);
  border-radius: 5px;
  padding: 6px 14px;
  background: rgba(196, 168, 130, 0.12);
  backdrop-filter: blur(2px);
  animation: wordPulse 3s ease-in-out infinite;
}

@keyframes wordPulse {
  0%, 100% { border-color: rgba(196,168,130,0.9); box-shadow: 0 0 0 0 rgba(196,168,130,0.2); }
  50% { border-color: rgba(196,168,130,0.6); box-shadow: 0 0 16px 4px rgba(196,168,130,0.1); }
}

.word-box span {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.phone-definition {
  background: var(--cream);
  padding: 18px 20px;
}

.def-word {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.def-pos {
  font-size: 0.75rem;
  color: var(--tan-dark);
  font-style: italic;
  margin-bottom: 7px;
}

.def-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(26,26,26,0.7);
}

.screenshots-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
}

.screenshots-text p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(26,26,26,0.7);
  margin-bottom: 16px;
}

.btn-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(26,26,26,0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-cta:hover {
  color: var(--tan-dark);
  border-color: var(--tan-dark);
}

/* =====================
   Privacy Page
   ===================== */
.policy-hero {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.policy-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  margin: 10px 0 8px;
}

.policy-hero p {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.42);
}

.policy-body {
  padding: 80px 0 120px;
  background: var(--cream);
}

.policy-content {
  max-width: 660px;
}

.policy-intro {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(26, 26, 26, 0.75);
  font-style: italic;
  margin-bottom: 60px;
  font-family: var(--font-heading);
  font-weight: 400;
}

.policy-block {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.policy-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-block h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 14px;
}

.policy-block p {
  font-size: 1rem;
  line-height: 1.82;
  color: rgba(26, 26, 26, 0.72);
  margin-bottom: 14px;
}

.policy-block p:last-child { margin-bottom: 0; }

.policy-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 300;
  margin-top: 10px;
  border-bottom: 1px solid rgba(26,26,26,0.25);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.policy-email:hover {
  color: var(--tan-dark);
  border-color: var(--tan-dark);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 860px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .deco-brush-wrap { display: none; }

  .screenshots-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
  }

  .footer-nav { text-align: left; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 24px; }

  .nav-links { gap: 20px; }

  .apps-grid { grid-template-columns: 1fr; }

  .app-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}
