/* ═══════════════════════════════════════
   CLOUDCLONE — Shared Stylesheet
   DuoPlus-inspired color theme
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* DuoPlus exact colors — extracted from visual inspection */
  --green:       #3ECF8E;   /* primary brand green */
  --green-lt:    #52D99A;   /* hover state */
  --green-dark:  #2BB87A;   /* pressed state */
  --green-dim:   rgba(62,207,142,.1);
  --green-dim2:  rgba(62,207,142,.18);

  /* Backgrounds — DuoPlus uses mostly white with dark sections */
  --bg:          #FFFFFF;
  --bg-gray:     #F6F8FA;   /* light gray sections */
  --bg-dark:     #0D1117;   /* hero/dark sections — near black */
  --bg-dark2:    #161B22;   /* card bg in dark sections */
  --bg-dark3:    #21262D;   /* borders in dark sections */

  /* Text */
  --text:        #1B1F23;   /* main body text */
  --text-mid:    #57606A;   /* secondary text */
  --text-dim:    #8B949E;   /* muted text */
  --text-white:  #F0F6FC;   /* white text on dark bg */
  --text-white2: rgba(240,246,252,.7); /* dim white */

  /* Borders */
  --border:      #D0D7DE;
  --border-dark: rgba(255,255,255,.1);

  /* Shadows */
  --shadow:      0 1px 3px rgba(27,31,35,.12), 0 8px 24px rgba(27,31,35,.08);
  --shadow-lg:   0 8px 24px rgba(27,31,35,.12), 0 24px 48px rgba(27,31,35,.1);

  /* Typography — DuoPlus uses Inter */
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-head:   'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  color: var(--bg-dark);
}
.nav-logo img { height: 32px; width: auto; }
.nav-logo .logo-text { color: var(--bg-dark); }
.nav-logo .logo-accent { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .45rem .85rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text-mid);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-gray); color: var(--text); }
.nav-links a.active { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn-login {
  padding: .48rem 1.1rem; border-radius: 8px;
  font-size: .88rem; font-weight: 500; color: var(--text-mid);
  background: transparent; border: 1px solid var(--border);
  transition: .2s;
}
.btn-login:hover { border-color: var(--green); color: var(--green); }
.btn-trial {
  padding: .5rem 1.2rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: var(--green); border: none;
  box-shadow: 0 4px 14px rgba(62,207,142,.35);
  transition: .2s;
}
.btn-trial:hover { background: var(--green-lt); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .4rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: .3rem; }
.has-dropdown > a::after { content: '▾'; font-size: .7rem; }
.dropdown {
  display: none; position: absolute; top: calc(100% + .5rem); left: 0;
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem; min-width: 220px;
  box-shadow: var(--shadow-lg); z-index: 99;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: 8px;
  font-size: .86rem; color: var(--text-mid); font-weight: 500;
}
.dropdown a:hover { background: var(--bg-gray); color: var(--text); }
.dropdown-section { font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim); padding: .5rem .75rem .2rem; }

@media(max-width:900px) {
  .nav-links, .nav-actions .btn-login { display: none; }
  .nav-toggle { display: flex; }
  .btn-trial { font-size: .82rem; padding: .45rem 1rem; }
}

/* ── HERO ── */
.hero {
  padding: 8rem 2rem 5rem;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark) 50%, var(--bg-dark2) 100%);
  position: relative; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62,207,142,.15), transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.3);
  border-radius: 50px; padding: .35rem 1rem;
  font-size: .78rem; font-weight: 600; color: var(--green);
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
  color: white; margin-bottom: 1.3rem; max-width: 800px; margin-inline: auto;
}
.hero h1 span { color: var(--green); }
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  max-width: 560px; margin: 0 auto 2.4rem; font-weight: 300; line-height: 1.75;
}
.hero-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green); color: white;
  padding: .85rem 2rem; border-radius: 10px;
  font-size: .95rem; font-weight: 600; border: none;
  box-shadow: 0 6px 24px rgba(62,207,142,.4);
  transition: .2s; text-decoration: none;
}
.btn-primary:hover { background: var(--green-lt); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); color: white;
  padding: .85rem 2rem; border-radius: 10px;
  font-size: .95rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  transition: .2s; text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); }

/* ── SECTION ── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--bg-dark); color: white; }
.section-gray { background: var(--bg-gray); }
.container { max-width: 1180px; margin: 0 auto; }
.section-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .7rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
  margin-bottom: .85rem;
}
.section-sub {
  font-size: 1rem; color: var(--text-dim); max-width: 520px;
  line-height: 1.75; font-weight: 300; margin-bottom: 3rem;
}
.section-dark .section-sub { color: rgba(255,255,255,.55); }
.section-dark .section-title { color: white; }

/* ── CARDS ── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem;
  box-shadow: var(--shadow); transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.card-dark {
  background: var(--bg-dark2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 1.8rem; color: white;
  transition: .25s;
}
.card-dark:hover { border-color: rgba(62,207,142,.4); transform: translateY(-3px); }

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; align-items: center; }
@media(max-width:900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media(max-width:600px) { .grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── FEATURE ITEM ── */
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-dim); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.feat-icon.dark { background: rgba(62,207,142,.15); }
.feat h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feat p { font-size: .86rem; color: var(--text-dim); line-height: 1.65; font-weight: 300; }
.card-dark .feat p { color: rgba(255,255,255,.55); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green-dim); border: 1px solid rgba(62,207,142,.25);
  border-radius: 50px; padding: .28rem .75rem;
  font-size: .72rem; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── PRICING ── */
.price-card {
  background: white; border: 2px solid var(--border);
  border-radius: 20px; padding: 2rem;
  transition: .25s; position: relative;
}
.price-card:hover { border-color: var(--green); box-shadow: 0 8px 40px rgba(62,207,142,.15); }
.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 8px 40px rgba(62,207,142,.2);
}
.price-tag { font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: white; background: var(--green);
  border-radius: 50px; padding: .2rem .65rem;
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
}
.price-amount {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .7rem; }
.price-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--text-mid);
}
.price-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── TOGGLE ── */
.toggle-wrap {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-gray); border-radius: 50px;
  padding: .4rem; width: fit-content; margin: 0 auto 3rem;
}
.toggle-btn {
  padding: .5rem 1.3rem; border-radius: 50px;
  font-size: .88rem; font-weight: 600; border: none;
  background: transparent; color: var(--text-mid); transition: .2s;
}
.toggle-btn.active {
  background: white; color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.save-badge {
  background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.25);
  color: var(--green); border-radius: 50px;
  padding: .2rem .65rem; font-size: .72rem; font-weight: 700;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-dark); color: rgba(255,255,255,.65);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: .6rem; }
.footer-desc { font-size: .84rem; line-height: 1.7; color: rgba(255,255,255,.5); margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: .6rem; }
.footer-social {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: .2s; color: rgba(255,255,255,.6);
}
.footer-social:hover { background: var(--green-dim); border-color: rgba(62,207,142,.4); color: var(--green); }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: white; margin-bottom: 1rem; }
.footer-col a {
  display: block; font-size: .84rem; color: rgba(255,255,255,.5);
  margin-bottom: .55rem; transition: color .2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom a:hover { color: var(--green); }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark2));
  border-radius: 20px; padding: 3.5rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(62,207,142,.12), transparent);
}
.cta-strip h2 {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: white; margin-bottom: .8rem; position: relative;
}
.cta-strip p { color: rgba(255,255,255,.55); margin-bottom: 1.8rem; position: relative; font-weight: 300; }

/* ── PLATFORM TAGS ── */
.platform-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.platform-tag {
  display: flex; align-items: center; gap: .4rem;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: .4rem .85rem;
  font-size: .82rem; font-weight: 500; color: var(--text-mid);
  transition: .2s;
}
.platform-tag:hover { border-color: var(--green); color: var(--green); }

/* ── TESTIMONIAL ── */
.testimonial {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem;
}
.testimonial p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.2rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.testimonial-name { font-weight: 600; font-size: .88rem; }
.testimonial-role { font-size: .78rem; color: var(--text-dim); }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media(max-width:768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--green); display: block; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ── UTILS ── */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-auto { margin-top: auto; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark));
  padding: 7rem 2rem 4rem; text-align: center;
}
.page-header h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; color: white; margin-bottom: .75rem; }
.page-header p { color: rgba(255,255,255,.55); font-size: 1rem; font-weight: 300; max-width: 500px; margin: 0 auto; }

/* ── AUTH PAGES ── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-gray); padding: 2rem;
}
.auth-card {
  background: white; border-radius: 20px; padding: 2.5rem;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.auth-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.auth-sub { font-size: .88rem; color: var(--text-dim); margin-bottom: 1.8rem; }
.form-field { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-mid);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.form-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: .75rem 1rem; font-family: var(--font); font-size: .92rem;
  color: var(--text); outline: none; transition: border-color .2s;
  background: white;
}
.form-input:focus { border-color: var(--green); }
.form-err { background: #FFF5F5; border: 1px solid #FED7D7; border-radius: 8px;
  padding: .6rem .85rem; font-size: .82rem; color: #C53030; margin-bottom: 1rem; display: none; }
.form-err.show { display: block; }
.form-ok { background: #F0FFF4; border: 1px solid #C6F6D5; border-radius: 8px;
  padding: .6rem .85rem; font-size: .82rem; color: #276749; margin-bottom: 1rem; display: none; }
.form-ok.show { display: block; }
.btn-full {
  width: 100%; background: var(--green); color: white; border: none;
  border-radius: 10px; padding: .85rem; font-size: .95rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(62,207,142,.35); transition: .2s;
}
.btn-full:hover { background: var(--green-lt); }
.btn-full:disabled { opacity: .5; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 1.3rem; font-size: .85rem; color: var(--text-dim); }
.auth-switch a { color: var(--green); font-weight: 600; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 9999;
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1.3rem; display: none; align-items: center; gap: .7rem;
  font-size: .84rem; box-shadow: var(--shadow-lg); max-width: 320px;
}
.toast.show { display: flex; }
.toast.ok { border-color: #C6F6D5; background: #F0FFF4; color: #276749; }
.toast.err { border-color: #FED7D7; background: #FFF5F5; color: #C53030; }
.toast-x { background: none; border: none; margin-left: auto; cursor: pointer; font-size: .95rem; color: var(--text-dim); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; }
.d1{animation-delay:.08s} .d2{animation-delay:.16s} .d3{animation-delay:.24s} .d4{animation-delay:.32s}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  .section { padding: 4rem 1.5rem; }
  .nav { padding: 0 1.2rem; }
}
