/* ------------------------------------------------------------
   Calm Intelligence Light Theme  v1.0
   ------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --bg-start: #f9fafc;
  --bg-end: #e8edf3;
  --text-main: #1b2b3a;
  --text-muted: #546376;
  --accent: #3db8b3;
  --accent-hover: #2d9b97;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow: 0 12px 36px rgba(0, 0, 0, .06);
  --transition: all .3s ease;
}

html,body{
  margin:0; padding:0;
  font-family:"Inter",sans-serif;
  background:linear-gradient(180deg,var(--bg-start),var(--bg-end));
  color:var(--text-main);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  scroll-behavior:smooth;
  animation:fadein .4s ease;
}

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

.shell{
  width:min(1100px,95%);
  margin:0 auto;
  padding:40px 16px 80px;
}

header{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:48px;
}

.logo{
  display:flex; gap:10px; align-items:center;
  text-decoration:none; color:var(--text-main);
  font-weight:600;
}
.logo svg{width:40px; height:40px;}

nav{display:flex; gap:10px;}
.btn{
  padding:10px 18px; border-radius:30px;
  border:1px solid transparent;
  text-decoration:none; font-weight:500;
  transition:var(--transition);
}
.primary{
  background:var(--accent); color:white;
}
.primary:hover{background:var(--accent-hover);}
.ghost{
  background:white; color:var(--text-main);
  border:1px solid #d1d9e0;
}
.ghost:hover{background:#f0f3f6;}

.card{
  background:white;
  border:1px solid #e1e7ee;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:60px;
}
h1,h2,h3{line-height:1.2; margin-top:0;}
p{line-height:1.8;}
a{color:var(--accent);}
a:hover{color:var(--accent-hover);}
footer{
  margin-top:60px;
  text-align:center;
  font-size:14px;
  color:var(--text-muted);
}
footer .links a{color:var(--accent); text-decoration:none; margin:0 6px;}
footer .links a:hover{text-decoration:underline;}

@media(max-width:720px){
  .card{padding:32px;}
  header{flex-direction:column; gap:16px;}
  nav{flex-wrap:wrap; justify-content:center;}
}
/* Button hover text fix */
.btn,
button,
input[type="submit"] {
  color: #fff !important;
  background-color: #3db8b3;
  border: none;
  transition: all 0.25s ease;
}

/* Premium Calm Gradient Buttons */
.btn,
button,
input[type="submit"] {
  color: #fff !important;
  background: linear-gradient(135deg, #3db8b3 0%, #2fa39e 100%);
  border: none;
  border-radius: 40px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(61,184,179,0.15);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #2fa39e 0%, #3db8b3 100%);
  box-shadow: 0 8px 22px rgba(61,184,179,0.25);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn,
button,
input[type="submit"] {
  transition: all 0.25s ease-in-out;
}

/* Navbar Gradient Buttons */
.navbar a {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 35px;
  font-weight: 600;
  color: #1a2b2d;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(61,184,179,0.25);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,248,248,0.8));
  box-shadow: 0 2px 6px rgba(61,184,179,0.08);
}

.navbar a:hover {
  background: linear-gradient(135deg, #3db8b3, #2fa39e);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(61,184,179,0.2);
  transform: translateY(-1px);
}

.navbar a.active {
  background: linear-gradient(135deg, #3db8b3, #2fa39e);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(61,184,179,0.2);
  border-color: transparent;
}
/* Logo area refinement */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,252,252,0.8));
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(61,184,179,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar .logo:hover {
  background: linear-gradient(135deg, #3db8b3, #2fa39e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,184,179,0.25);
}

.navbar .logo span {
  color: #102d2d;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.navbar .logo:hover span {
  color: #fff;
}
/* Refined navbar group cohesion */
.navbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(61,184,179,0.08);
  border-bottom: 1px solid rgba(61,184,179,0.1);
}

.navbar a {
  margin: 0 0.3rem;
}

.navbar a.active {
  background: linear-gradient(135deg, #3db8b3, #2fa39e);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(61,184,179,0.18);
}
/* ==== Phase 1: Typography, spacing, mobile =================== */

/* Base type */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; color:#182a2f; }

/* Headings rhythm */
h1,h2,h3 { letter-spacing: 0.1px; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 2.6vw + 1.2rem, 3rem); }
h2 { font-weight: 600; font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); }
p, li { line-height: 1.75; color:#334b52; }

/* Section breathing space */
.card { margin: 1.75rem 0 2.5rem; }

/* Buttons sizing consistency (keeps your gradient styles) */
.btn, button, input[type="submit"] {
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
}

/* Navbar alignment helpers (works with your current markup) */
.navbar { display:flex; align-items:center; justify-content:flex-end; gap: .35rem; padding: .6rem 1rem; }
.navbar .logo { margin-right:auto; }

/* ----- Mobile polish ----- */
@media (max-width: 900px) {
  .navbar { position: sticky; top: 0; z-index: 10; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(1.9rem, 4vw + 1rem, 2.4rem); }
  .btn, button, input[type="submit"] { font-size: .95rem; padding: 0.7rem 1.3rem; }
  .card { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  p, li { font-size: .98rem; }
  .navbar a { padding: .45rem 1rem; font-size: .95rem; }
}
/* ====== Home page expansion helpers ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Section rhythm */
.section { margin: 2.5rem 0 3.25rem; }
.section-head { max-width: 840px; }
.section .lead { font-size: 1.06rem; }

/* Grid (auto stacks on mobile) */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* Cards (use your existing .card base; just refine) */
.card.hero { padding-top: 2.25rem; padding-bottom: 2rem; }
.card.feature { text-align: left; }
.card.feature h3 { margin-top: .25rem; margin-bottom: .5rem; }
.feature-emoji { font-size: 1.6rem; }

.bullets { margin: .75rem 0 0; padding-left: 1.1rem; }
.bullets li { margin: .25rem 0; }

/* CTA block */
.cta { text-align: center; }
.btn-ghost {
  color: #2fa39e;
  background: transparent;
  border: 1px solid rgba(61,184,179,0.35);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(61,184,179,0.08);
  color: #208c86;
}

/* Footer spacing alignment */
.footer { text-align: center; padding: 2.25rem 0 3.25rem; color:#466169; }
/* ====== Polishing pass (safe to append) ====== */

/* 1) Comfortable reading width for body copy */
.prose { max-width: 60ch; }

/* 2) Hero presence + subhead contrast */
.card.hero {
  padding: 2.75rem 2rem 2.35rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
}
.card.hero p { color: #31484f; }   /* slight contrast for subhead */

/* 3) Feature cards: consistent height + hover */
.grid-3 .card.feature {
  min-height: 210px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.grid-3 .card.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}
.feature-emoji {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(61,184,179,.10);
  font-size: 1.15rem;
}

/* 4) Scaling: containers + type clamp */
.container { max-width: 1200px; } /* a touch wider on desktop */

h1 { font-size: clamp(2.1rem, 2.2vw + 1.2rem, 3.3rem); }
h2 { font-size: clamp(1.5rem, 1.1vw + 1rem, 2.1rem); }

@media (max-width: 820px) {
  .card.hero { padding: 2rem 1.25rem 1.6rem; }
  .grid-3 { gap: 1rem; }
}

/* 5) Footer breathing room */
.footer { padding: 2.6rem 0 3.6rem; color:#4a6570; }

/* 6) Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* Platform cards cohesion */
.card.feature p { color:#35535b; }
.card.feature .btn { margin-top:.35rem; }

/* Simple breadcrumb-ish chips (optional future) */
.chips { display:flex; gap:.5rem; flex-wrap:wrap; }
.chips .chip {
  padding:.25rem .6rem; border-radius:999px;
  background:rgba(61,184,179,.12); color:#1b6d69; font-size:.85rem;
}
