/* LogicLight AI — site styles */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #1e5eff;
  --teal: #12b5a6;
  --amber: #ffb020;
  --ink: #1a2433;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --max: 1160px;
  --grad: linear-gradient(135deg, var(--blue), var(--teal));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #d7e1ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(30, 94, 255, .25); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .ai { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 550; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); text-decoration: none; }
.nav-links .btn { color: #fff; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #d7e1ee;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(18,181,166,.35), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(30,94,255,.35), transparent 60%),
              var(--navy);
  padding: 110px 0 120px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 .hl { background: linear-gradient(90deg, #6ea0ff, #4fe0d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b9c7da; font-size: 1.2rem; margin-bottom: 34px; }
.hero-grid { position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%); }
.hero .container { position: relative; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.hero-badges span { font-size: .88rem; padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #cfdbea; }

.page-hero { background: var(--navy); color: #b9c7da; padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(18,181,166,.35), transparent 70%); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #b9c7da; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfd9e6; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(30,94,255,.12), rgba(18,181,166,.16)); color: var(--blue);
}
.icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 650; }

/* Industry panels */
.industry {
  border-radius: 20px; padding: 44px; color: #d7e1ee; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
}
.industry h3 { color: #fff; font-size: 1.6rem; }
.industry p { color: #b9c7da; }
.industry .icon { background: rgba(255,255,255,.1); color: #4fe0d0; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.industry .checklist li { color: #d7e1ee; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }
.section--dark .stat span { color: #b9c7da; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; font-size: 1.1rem; color: #4fe0d0; margin-bottom: 10px; }
.step p { color: #b9c7da; margin: 0; }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail .icon { width: 64px; height: 64px; border-radius: 16px; }
.service-detail .icon svg { width: 32px; height: 32px; }
.service-detail p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy); }

/* Team */
.person { text-align: left; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.person .role { color: var(--teal); font-weight: 650; margin-bottom: 12px; }

/* CTA band */
.cta {
  border-radius: 24px; padding: 60px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.18), transparent 60%), var(--grad);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 28px; }
.cta .btn { background: #fff; color: var(--navy); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .icon { margin: 0; flex: 0 0 50px; }
.contact-info h3 { margin-bottom: 2px; font-size: 1.02rem; }
.contact-info p { color: var(--muted); margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,94,255,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.hidden { display: none !important; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #0f8f6b; }
.form-status.err { color: #c0392b; }

/* Values */
.value { padding: 26px; border-left: 3px solid var(--teal); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.value p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #081629; color: #9fb0c6; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb0c6; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 84px; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .industry, .cta { padding: 32px 24px; }
  .form { padding: 24px; }
  .service-detail { grid-template-columns: 1fr; gap: 12px; }
}
