/* ====================================
   OkCondo — Premium SaaS Landing Page
   ==================================== */

/* --- Variables --- */
:root, [data-theme='dark'] {
  --bg: #060610;
  --surface: #0c0e1a;
  --card: #111425;
  --border: rgba(255,255,255,0.06);
  --primary: #2B5ECC;
  --primary-hover: #3d72e8;
  --primary-glow: rgba(43,94,204,0.15);
  --accent: #22c55e;
  --text: #e8ecf4;
  --text-2: #94a3b8;
  --text-3: #5a6478;
  --radius: 14px;
  --header-bg: rgba(6,6,16,.88);
  --btn-outline-border: rgba(255,255,255,.12);
  --btn-outline-hover-border: rgba(255,255,255,.25);
  --btn-outline-hover-bg: rgba(255,255,255,.04);
}

[data-theme='light'] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --primary: #2B5ECC;
  --primary-hover: #3d72e8;
  --primary-glow: rgba(43,94,204,0.08);
  --accent: #22c55e;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --radius: 14px;
  --header-bg: rgba(255,255,255,.88);
  --btn-outline-border: rgba(0,0,0,.12);
  --btn-outline-hover-border: rgba(0,0,0,.25);
  --btn-outline-hover-bg: rgba(0,0,0,.04);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* --- Scroll Animation --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ====================================
   HEADER
   ==================================== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  padding: 18px 0;
  background: transparent;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.hdr-logo img { height: 26px; }
.hdr-nav {
  display: flex; align-items: center; gap: 28px;
}
.hdr-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s;
}
.hdr-nav a:hover { color: var(--text); }
.hdr-cta {
  background: var(--primary); color: #fff !important;
  padding: 9px 22px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  transition: background .2s, transform .15s;
}
.hdr-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Hamburger */
.hdr-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 26px; height: 18px; position: relative; z-index: 1001;
}
.hdr-hamburger span {
  display: block; position: absolute; left: 0; width: 100%;
  height: 2px; background: var(--text); border-radius: 2px;
  transition: .3s;
}
.hdr-hamburger span:nth-child(1) { top: 0; }
.hdr-hamburger span:nth-child(2) { top: 8px; }
.hdr-hamburger span:nth-child(3) { top: 16px; }
.hdr-hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hdr-hamburger.active span:nth-child(2) { opacity: 0; }
.hdr-hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ====================================
   HERO
   ==================================== */
.hero {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 160px 20px 120px;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero::after {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none; filter: blur(60px);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; margin-bottom: 32px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  border-radius: 50px; font-size: 13px; color: var(--text-2);
}
.hero-badge span { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.03em; margin-bottom: 22px;
}
.hero .gradient {
  background: linear-gradient(135deg, #5b8def, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px; color: var(--text-2);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--btn-outline-border); }
.btn-outline:hover { border-color: var(--btn-outline-hover-border); background: var(--btn-outline-hover-bg); }

/* ====================================
   SECTIONS
   ==================================== */
.section { padding: 100px 0; background: var(--bg); }
.section-alt { background: var(--surface); }
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px;
}
.section-sub {
  text-align: center; color: var(--text-2);
  max-width: 500px; margin: 0 auto 52px; font-size: 15px;
}

/* ====================================
   FEATURES
   ==================================== */
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: border-color .25s, transform .25s;
}
.feat-card:hover {
  border-color: rgba(43,94,204,.35); transform: translateY(-3px);
}
.feat-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(43,94,204,.1); margin-bottom: 14px;
  color: var(--primary-hover);
}
.feat-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* ====================================
   HOW IT WORKS
   ==================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 18%; right: 18%;
  height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.step { position: relative; }
.step-n {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  margin: 0 auto 18px; position: relative; z-index: 1;
  box-shadow: 0 0 40px var(--primary-glow);
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-3); max-width: 240px; margin: 0 auto; }

/* ====================================
   PRICING
   ==================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 28px; position: relative;
  transition: transform .25s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.pop {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(43,94,204,.06) 0%, var(--card) 50%);
  transform: scale(1.03); z-index: 1;
}
.price-card.pop:hover { transform: scale(1.03) translateY(-4px); }
.pop-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: .04em;
}
.price-name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.price-desc { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.price-val { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.price-cur { font-size: 17px; font-weight: 600; color: var(--text-2); }
.price-num { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-per { font-size: 14px; color: var(--text-3); }
.price-trial {
  display: inline-block; margin-bottom: 22px;
  background: rgba(34,197,94,.08); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 50px;
}
.price-list { list-style: none; margin-bottom: 26px; }
.price-list li {
  padding: 7px 0; font-size: 13.5px; color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
}
.price-list li::before {
  content: '✓'; display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: rgba(34,197,94,.1);
  border-radius: 50%; flex-shrink: 0;
}
.price-btn {
  display: block; width: 100%; text-align: center;
  padding: 13px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.price-btn.fill { background: var(--primary); color: #fff; }
.price-btn.fill:hover { background: var(--primary-hover); }
.price-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.price-btn.ghost:hover { border-color: var(--primary); }

/* ====================================
   TESTIMONIALS
   ==================================== */
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.test-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.test-card .quote { font-size: 14.5px; color: var(--text-2); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.test-card .author { font-size: 14px; font-weight: 600; }
.test-card .role { font-size: 12.5px; color: var(--text-3); }

/* ====================================
   FAQ
   ==================================== */
.faq-wrap { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  padding: 20px 0; font-size: 15px; font-weight: 600; text-align: left;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; transition: color .2s;
}
.faq-q:hover { color: var(--primary-hover); }
.faq-q svg { flex-shrink: 0; transition: transform .3s; color: var(--text-3); }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a.open { max-height: 200px; }
.faq-a p { font-size: 14px; color: var(--text-2); line-height: 1.7; padding-bottom: 18px; }

/* ====================================
   CTA / DOWNLOAD
   ==================================== */
.cta-block {
  text-align: center; padding: 72px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  border-radius: 20px; margin: 0 20px 80px;
}
.cta-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,.78); margin-bottom: 28px; font-size: 15px; }
.store-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.store-play { background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.store-play:hover { background: rgba(0,0,0,.4); }
.store-ios { background: rgba(0,0,0,.1); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.08); cursor: default; }

/* ====================================
   FOOTER
   ==================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-3); font-size: 13.5px; margin: 10px 0; }
.footer-email { color: var(--primary-hover); font-size: 13px; }
.footer-links h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-2); margin-bottom: 14px;
}
.footer-links a, .footer-store {
  display: block; color: var(--text-3); font-size: 13.5px; margin-bottom: 9px; transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-store { display: inline-flex; align-items: center; gap: 6px; }
.footer-soon { font-size: 12px; color: var(--text-3); display: block; margin-top: 4px; }
.footer-bottom {
  text-align: center; padding: 22px 0; margin-top: 36px;
  border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hdr-hamburger { display: block; }
  .hdr-nav {
    position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
    background: var(--surface); flex-direction: column; padding: 72px 28px 28px;
    gap: 0; transition: right .3s ease; z-index: 1000;
    border-left: 1px solid var(--border); box-shadow: -8px 0 32px rgba(0,0,0,.4);
  }
  .hdr-nav.active { right: 0; }
  .hdr-nav a {
    padding: 14px 0; font-size: 15px; width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .hdr-cta { text-align: center; margin-top: 12px; border-bottom: none !important; }

  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .price-card.pop { transform: none; }
  .price-card.pop:hover { transform: translateY(-4px); }
  .test-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .section { padding: 64px 0; }
  .hero { padding: 120px 20px 72px; }
  .hero h1 { font-size: 2rem; }
  .cta-block { margin: 0 12px 56px; padding: 52px 20px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
}

/* ====================================
   LEGAL PAGES (Termos / Privacidade)
   ==================================== */
.legal-content { padding: 120px 0 64px; background: var(--bg); }
.legal-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.25rem; font-weight: 600; margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin-bottom: 10px; }
.legal-content ul { padding-left: 24px; }

/* Page Header for Legal pages */
.page-header {
  padding: 140px 20px 60px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 15px;
  opacity: 0.8;
}
.section-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
}
.text-white { color: #fff; }
.text-white h1, .text-white p { color: #fff; }

/* ====================================
   BLOG
   ==================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43,94,204,.35);
}
.blog-card-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-3);
}
.blog-card-tag {
    background: rgba(43,94,204,.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
}
.blog-card-excerpt {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}
.blog-post-page {
    max-width: 800px;
    margin: 0 auto;
}
.blog-post-header {
    margin-bottom: 40px;
}
.blog-post-tags {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.blog-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}
.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-3);
    font-size: 14.5px;
}
.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-post-meta svg {
    width: 16px;
    height: 16px;
}
.blog-post-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
}
.blog-post-cover img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
.blog-post {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-2);
}
.blog-post h1, .blog-post h2, .blog-post h3, .blog-post h4 {
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.blog-post h2 { font-size: 24px; }
.blog-post h3 { font-size: 20px; }
.blog-post p { margin-bottom: 24px; }
.blog-post a { color: var(--primary); text-decoration: underline; }
.blog-post a:hover { color: var(--primary-hover); }
.blog-post ul, .blog-post ol { margin-bottom: 24px; padding-left: 24px; }
.blog-post li { margin-bottom: 8px; }
.blog-post blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-3);
    margin-bottom: 24px;
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
}
.blog-post pre {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.blog-post code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-post pre code {
    background: transparent;
    padding: 0;
}
.blog-post img {
    max-width: 100%;
    border-radius: 8px;
    margin: 32px 0;
}
