:root {
  --white: #FFFFFF;
  --off-white: #FAF6F2;
  --gray-50: #F5F5F4;
  --gray-100: #E7E5E4;
  --gray-200: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-900: #1C1917;
  --blue: #2C3E50;
  --cream: #FAF6F2;
  --green: #4A6741;
  --sky: #A8C5D6;
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "SF Pro Display", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--off-white);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(168, 197, 214, 0.3); }
  50%      { box-shadow: 0 0 60px rgba(168, 197, 214, 0.5); }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-25px, 25px) scale(0.96); }
  66%      { transform: translate(35px, -10px) scale(1.04); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(15px, 30px) scale(1.03); }
  66%      { transform: translate(-30px, -20px) scale(0.97); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════
   TRIAL BANNER
   ═══════════════════════════════ */

.trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: linear-gradient(90deg, var(--gray-900), #2a2522);
  text-align: center;
  padding: 10px 16px;
}

.trial-banner a {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.trial-banner a:hover {
  opacity: 0.85;
}

.has-banner .site-header {
  top: 38px;
}

.has-banner .hero {
  padding-top: 110px;
}

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 242, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  animation: fadeIn 0.6s var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s var(--ease-out);
}

.brand:hover { transform: scale(1.02); }

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all 0.2s var(--ease-out);
}

.nav a:hover {
  color: var(--gray-900);
  background: rgba(0,0,0,0.04);
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(168,197,214,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(74,103,65,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(44,62,80,0.12) 0%, transparent 70%),
    linear-gradient(160deg, #FAF6F2 0%, #f2ede6 40%, #e8f0f4 100%);
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
}

/* Floating orbs */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.hero-bg::before {
  width: 400px;
  height: 400px;
  background: rgba(168,197,214,0.3);
  top: 10%;
  left: 5%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.hero-bg::after {
  width: 350px;
  height: 350px;
  background: rgba(44,62,80,0.25);
  top: 30%;
  right: 10%;
  animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(74,103,65,0.2);
  filter: blur(50px);
  bottom: 10%;
  left: 40%;
  animation: orbFloat3 22s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  animation: slideInLeft 1s var(--ease-out) 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(168,197,214,0.15);
  border: 1px solid rgba(168,197,214,0.2);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 6s ease infinite;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 440px;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  color: var(--gray-900);
  outline: none;
  transition: all 0.3s var(--ease-out);
  font-family: inherit;
}

.hero-form input[type="email"]:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(168,197,214,0.15);
}

.hero-form input[type="email"]::placeholder {
  color: var(--gray-400);
}

.hero-form button {
  flex-shrink: 0;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: var(--gray-900);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  font-family: inherit;
}

.hero-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-success {
  display: none;
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
  animation: fadeUp 0.5s var(--ease-out);
}

.hero-success.show { display: block; }

.hero-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.app-store-btn svg {
  width: 22px;
  height: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 20px;
}

/* Hero globe visual */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: slideInRight 1s var(--ease-out) 0.4s both;
}

.hero-globe-wrap {
  position: relative;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.15s ease-out;
}

.hero-globe {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.12),
    0 8px 20px rgba(0,0,0,0.08);
}

.hero-globe img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-globe-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(168,197,214,0.15) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

/* ═══════════════════════════════
   SECTIONS
   ═══════════════════════════════ */

section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* ═══════════════════════════════
   FEATURES GRID
   ═══════════════════════════════ */

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--gray-100);
  background: var(--white);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ═══════════════════════════════
   CONTACT FORM
   ═══════════════════════════════ */

.contact {
  background: var(--off-white);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  color: var(--gray-900);
  outline: none;
  transition: all 0.3s var(--ease-out);
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(168,197,214,0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form button {
  align-self: flex-start;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: var(--gray-900);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  font-family: inherit;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.contact-success {
  display: none;
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  margin-top: 12px;
  animation: fadeUp 0.5s var(--ease-out);
}

.contact-success.show { display: block; }

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */

.cta {
  position: relative;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(168,197,214,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(44,62,80,0.12) 0%, transparent 70%);
  animation: gradientMove 10s ease infinite;
  background-size: 200% 200%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.cta p {
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta .app-store-btn {
  background: var(--white);
  color: var(--gray-900);
}

.cta .app-store-btn:hover {
  box-shadow: 0 8px 28px rgba(255,255,255,0.2);
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--gray-100);
  padding: 28px 0;
  background: var(--off-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  transition: color 0.2s var(--ease-out);
}

.footer-links a:hover { color: var(--gray-900); }

/* ═══════════════════════════════
   ABOUT / PRIVACY PAGES
   ═══════════════════════════════ */

.page-simple {
  padding: 120px 0 80px;
}

.page-simple-inner {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.8s var(--ease-out);
}

.page-simple-inner h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.page-simple-inner h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-simple-inner p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-simple-inner a {
  color: var(--green);
  font-weight: 500;
  transition: color 0.2s;
}

.page-simple-inner a:hover { text-decoration: underline; }

.page-simple-inner ul {
  margin: 0 0 16px 20px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.7;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 900px) {
  .header-inner {
    height: auto !important;
    flex-direction: column !important;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
  }
  .nav {
    width: 100%;
    justify-content: center;
    gap: 2px;
  }
  .hero {
    min-height: auto !important;
    align-items: flex-start !important;
    padding-top: 150px !important;
  }
  .has-banner .hero {
    padding-top: 200px !important;
  }
  .page-simple {
    padding-top: 160px !important;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { animation-name: fadeUp; }
  .hero-visual { animation-name: fadeUp; animation-delay: 0.5s; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-form { max-width: 100%; justify-content: center; }
  .hero-links { justify-content: center; }
  .hero-note { text-align: center; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero-globe { width: 300px; height: 300px; }

  .contact-form button { align-self: stretch; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { min-height: auto; }
  .nav a { font-size: 13px; padding: 5px 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-form { flex-direction: column; }
  .hero-form button { width: 100%; }
  .hero-globe { width: 260px; height: 260px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .hero-links { flex-direction: column; align-items: center; }
}
