/* ===========================================================
   AIcademy — pagrindinis stilius
   Vienas failas, be jokių bibliotekų.
   =========================================================== */

:root {
  --ink:        #0e1525;
  --ink-2:      #3d4763;
  --ink-3:      #6b7590;
  --line:       #e4e7f0;
  --line-2:     #eef0f7;
  --bg:         #ffffff;
  --bg-soft:    #f7f8fc;
  --bg-deep:    #0e1525;

  --brand:      #4338ca;
  --brand-600:  #4f46e5;
  --brand-100:  #eceafe;
  --cyan:       #0891b2;
  --accent:     #ea8a05;
  --accent-100: #fdf1dd;
  --green:      #0f7a52;
  --green-100:  #e3f5ec;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(14,21,37,.05), 0 8px 24px rgba(14,21,37,.06);
  --shadow-lg:  0 2px 4px rgba(14,21,37,.05), 0 18px 48px rgba(14,21,37,.10);
  --maxw:       1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #eef1f8;
    --ink-2:    #b6bed4;
    --ink-3:    #8b93ac;
    --line:     #262e44;
    --line-2:   #1b2236;
    --bg:       #0d121e;
    --bg-soft:  #131a29;
    --bg-deep:  #080c15;
    --brand:    #a5a0f8;
    --brand-600:#8b85f5;
    --brand-100:#1e2140;
    --cyan:     #4dd0e8;
    --accent:   #f5a93c;
    --accent-100:#2e2312;
    --green:    #5ed4a0;
    --green-100:#12281f;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:0 2px 4px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

.lead { font-size: 1.16rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 18px; height: 68px; }

.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--brand); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-2); font-size: .96rem; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand); background: var(--brand-100); }

.nav-cta {
  background: var(--brand) !important; color: #fff !important;
  padding: 9px 16px !important; border-radius: 10px !important; font-weight: 600 !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--brand-600) !important; }

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 40px; cursor: pointer; color: var(--ink);
  font-size: 1.15rem; line-height: 1;
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: .15s ease; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); color: #1c1302; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-soft); }
.btn-white { background: #fff; color: #0e1525; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 9px 16px; font-size: .92rem; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--brand-100), transparent 65%),
    radial-gradient(700px 380px at 96% 6%, var(--accent-100), transparent 60%);
}
.hero h1 { max-width: 19ch; }
.hero .lead { max-width: 56ch; font-size: 1.22rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } .hero { padding: 48px 0 44px; } }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

.hero-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 14px; font-size: 1.05rem; }
.chat-line { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.chat-av {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--ink-3);
}
.chat-av.ai { background: var(--brand); }
.chat-bub {
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 9px 13px; font-size: .93rem; line-height: 1.5; color: var(--ink-2);
}
.chat-bub strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 46px 0; }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); margin-bottom: 0; font-size: 1.08rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .18s ease; display: flex; flex-direction: column;
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.card .card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); font-size: 1.15rem; margin-bottom: 14px;
}
.ico.amber { background: var(--accent-100); color: var(--accent); }
.ico.green { background: var(--green-100); color: var(--green); }

.price { font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.price small { font-weight: 500; font-size: .8rem; color: var(--ink-3); }

.tag {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line);
}
.tag-brand { background: var(--brand-100); color: var(--brand); border-color: transparent; }
.tag-green { background: var(--green-100); color: var(--green); border-color: transparent; }
.tag-amber { background: var(--accent-100); color: var(--accent); border-color: transparent; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

/* ---------- Steps / numbered ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}
.step h3 { margin-bottom: 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 0; }
.stat b { display: block; font-size: 2rem; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat span { font-size: .93rem; color: var(--ink-3); }

/* ---------- Lists ---------- */
.check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-2); }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.check.tight li { margin-bottom: 6px; }

.dash { list-style: none; padding: 0; margin: 0 0 1.2em; }
.dash li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--ink-2); }
.dash li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

/* ---------- Prose (straipsniams) ---------- */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 24px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2); font-size: 1.02rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: var(--bg-soft); }
.prose code {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px; font-size: .9em;
}

.promptbox {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.5em 0;
}
.promptbox .tag { margin-bottom: 10px; }
.promptbox p { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92rem; line-height: 1.6; color: var(--ink-2); margin: 0; white-space: pre-wrap; }

.note {
  background: var(--brand-100); border-radius: var(--radius); padding: 18px 20px; margin: 1.5em 0;
  font-size: .98rem; color: var(--ink-2);
}
.note strong { color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--ink-3); padding: 20px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---------- Page head ---------- */
.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--ink-2); font-size: 1.12rem; max-width: 62ch; margin: 0; }

/* ---------- Article meta ---------- */
.art-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .89rem; color: var(--ink-3); margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 17px 34px 17px 0; font-weight: 600; position: relative;
  list-style: none; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-size: 1.35rem; font-weight: 400; color: var(--brand); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px 0; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #241f6b 0%, #4338ca 55%, #0891b2 130%);
  color: #fff; border-radius: var(--radius-lg); padding: 46px 44px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 34px 26px; text-align: left; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .84rem; color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; color: var(--ink-3); }
.consent input { width: auto; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote p { font-size: 1rem; color: var(--ink-2); font-style: italic; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: 0 0 40px;
}
.quote b { display: block; font-size: .93rem; color: var(--ink); }
.quote span { font-size: .85rem; color: var(--ink-3); }

/* ---------- Table of pricing ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ptable th, .ptable td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.ptable th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); color: #aeb7cd; margin-top: 80px;
  padding: 56px 0 30px; font-size: .94rem;
}
.site-footer a { color: #d4daea; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-logo { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -.03em; }
.foot-logo span { color: #a5a0f8; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .87rem; color: #7d87a0;
}

/* ---------- Cookie bar ---------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 20px; display: none;
  align-items: center; gap: 16px; flex-wrap: wrap; max-width: 720px; margin: 0 auto;
  font-size: .92rem; color: var(--ink-2);
}
.cookiebar.show { display: flex; }
.cookiebar p { margin: 0; flex: 1 1 320px; }

/* ---------- Utilities ---------- */
.mb0 { margin-bottom: 0; }
.mt2 { margin-top: 2rem; }
.mt3 { margin-top: 3rem; }
.hr { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
