/* ============ TOKENS ============ */
:root {
  --bg: #0b1020;
  --bg-alt: #0f1530;
  --surface: #141b38;
  --surface-2: #1a2348;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --brand: #6c5ce7;
  --brand-2: #00d1b2;
  --accent: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Keyboard focus: visible for keyboard users, not on mouse click */
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-to-content link (visible only when focused) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 30px rgba(108,92,231,.35); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900;
}
.brand-accent { color: var(--brand-2); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 70px 0 50px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(0,209,178,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(108,92,231,.22), transparent 55%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-2); background: rgba(0,209,178,.1); border: 1px solid rgba(0,209,178,.2);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.hero-trust span { color: var(--muted); font-size: .85rem; }

/* code window */
.hero-card { perspective: 1000px; }
.code-window {
  background: #0d1430; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.code-window:hover { transform: rotateY(0) rotateX(0); }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #0a1026; border-bottom: 1px solid var(--line); }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; }
.code-bar span:nth-child(2) { background: #ffbd2e; }
.code-bar span:nth-child(3) { background: #27c93f; }
.code-bar em { margin-left: auto; color: var(--muted); font-size: .8rem; font-style: normal; }
.code-window pre { padding: 22px; overflow-x: auto; }
.code-window code { font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; font-size: .9rem; line-height: 1.7; color: #cdd6f4; }
.c-key { color: #cba6f7; } .c-var { color: #89dceb; } .c-prop { color: #f9e2af; }
.c-str { color: #a6e3a1; } .c-fn { color: #89b4fa; } .c-com { color: #6c7393; font-style: italic; }

/* ============ TECH STRIP ============ */
.tech-strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.tech-label { text-align: center; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.tech-list span { color: var(--text); font-weight: 600; opacity: .75; transition: opacity .2s; }
.tech-list span:hover { opacity: 1; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(108,92,231,.4); box-shadow: var(--shadow); }
.card-icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-thumb { height: 150px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: .04em; }
.thumb-1 { background: linear-gradient(135deg, #6c5ce7, #341f97); }
.thumb-2 { background: linear-gradient(135deg, #00d1b2, #0a7e72); }
.thumb-3 { background: linear-gradient(135deg, #ff7675, #d63031); }
.thumb-4 { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.work-body { padding: 22px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .76rem; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step-num { font-family: var(--display); font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { margin: 8px 0; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote blockquote { font-size: 1.02rem; margin-bottom: 16px; }
.quote blockquote::before { content: "“"; font-family: Georgia, serif; font-size: 2.4rem; color: var(--brand-2); line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.quote figcaption { color: var(--muted); font-size: .9rem; }
.quote figcaption strong { color: var(--text); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; position: relative; }
.plan-featured { border-color: rgba(108,92,231,.5); background: linear-gradient(180deg, rgba(108,92,231,.12), var(--surface)); transform: scale(1.03); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 10px; }
.price { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; }
.price span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--text); }
.plan li:last-child { border-bottom: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-avatar { width: 100%; aspect-ratio: 1/1; max-width: 320px; margin: 0 auto; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 6rem; box-shadow: var(--shadow); }
.about-copy h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; letter-spacing: -.02em; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-points { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.about-points li { font-weight: 500; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; max-width: 920px; margin: 0 auto; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card > p { color: var(--muted); margin-bottom: 18px; }
.contact-note { font-size: .85rem; margin-top: 14px; text-align: center; }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: .95rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form textarea { resize: vertical; }

/* footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.brand-footer { margin-bottom: 14px; }
.footer-desc { color: var(--muted); max-width: 320px; font-size: .93rem; }
.footer-links h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-links a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* whatsapp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  animation: wa-pulse 2.4s infinite; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 10px 0; transform: translateY(-130%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 22px; width: 100%; }
  .nav .nav-cta { margin: 10px 22px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .cards, .work-grid, .steps, .quotes, .pricing { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .cards, .work-grid, .steps, .quotes, .pricing { grid-template-columns: repeat(2, 1fr); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .code-window { transform: none; }
  .btn:hover, .card:hover, .work-card:hover, .wa-float:hover { transform: none; }
}
