:root {
  --ink: #0d1a2b;
  --ink-2: #18314f;
  --muted: #66758a;
  --line: #d9e1e8;
  --soft: #eef4f8;
  --paper: #f8fafc;
  --white: #ffffff;
  --navy: #0b1c2e;
  --navy-2: #132b45;
  --accent: #d9e9f7;
  --shadow: 0 18px 45px rgba(13, 26, 43, .08);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #64748b; margin-bottom: 18px; }
.display { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.04em; line-height: .97; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217,225,232,.7);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 800; letter-spacing: -.04em; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; }
.nav-links a:not(.btn):hover { opacity: .6; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; padding: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 4px;
  background: var(--navy); color: white; border: 1px solid var(--navy);
  font-weight: 650; font-size: .92rem; cursor: pointer; transition: .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(11,28,46,.18); }
.btn.secondary { background: transparent; color: var(--ink); border-color: #b8c4cf; box-shadow: none; }
.btn.secondary:hover { background: white; }

.hero { position: relative; overflow: hidden; background: white; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 660px; }
.hero-copy { padding: 100px 60px 82px 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3.25rem, 6vw, 6.65rem); max-width: 820px; margin: 0 0 28px; }
.hero p { font-size: 1.08rem; color: #445468; max-width: 690px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-proof { display: flex; gap: 36px; font-size: .9rem; color: #4f6073; }
.hero-proof span { border-left: 2px solid var(--ink-2); padding-left: 12px; }
.hero-art {
  min-height: 660px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%),
    linear-gradient(135deg, #ecf2f6 0 42%, #dfe8ef 42% 52%, #0f263b 52% 100%);
  position: relative;
  overflow: hidden;
}
.hero-art:before {
  content: ""; position: absolute; width: 70%; height: 115%; right: -9%; top: 3%;
  transform: rotate(15deg);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 1px, transparent 44px),
              linear-gradient(180deg,#19364e,#0b1c2e);
  box-shadow: -30px 10px 80px rgba(0,0,0,.16);
}
.hero-art:after {
  content: "IDEAS\A LOGIC\A REAL SOLUTIONS"; white-space: pre;
  position: absolute; right: 32px; bottom: 40px; color: white; font-size: .68rem; line-height: 1.7; letter-spacing: .19em;
}

.section { padding: 96px 0; }
.section.white { background: white; }
.section.dark { background: var(--navy); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.25rem, 4vw, 4.3rem); line-height: 1; letter-spacing: -.035em; margin: 0; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }
.dark .section-head p { color: #b7c7d6; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.service-card { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: .25s ease; }
.service-card:hover { background: #f3f7fa; transform: translateY(-2px); }
.service-card .num { font-size: .76rem; letter-spacing: .12em; color: #738397; }
.service-card h3 { font-size: 1.05rem; margin: 50px 0 10px; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.dark-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.dark-band h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.5rem,4vw,4.7rem); line-height: 1.02; margin: 0 0 20px; }
.dark-band p { color: #b8c7d5; max-width: 620px; }
.wave { height: 320px; border: 1px solid rgba(255,255,255,.13); position: relative; overflow: hidden; background: radial-gradient(circle at 70% 15%, #25445e 0, transparent 42%); }
.wave:before, .wave:after { content: ""; position: absolute; inset: 50% -20% auto -20%; height: 1px; background: rgba(255,255,255,.35); transform: rotate(-10deg); box-shadow: 0 14px 0 rgba(255,255,255,.18), 0 28px 0 rgba(255,255,255,.1), 0 -14px 0 rgba(255,255,255,.18), 0 -28px 0 rgba(255,255,255,.1); }
.wave:after { transform: rotate(10deg); opacity: .65; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; }
.metric { border-left: 1px solid rgba(255,255,255,.2); padding-left: 18px; }
.metric strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.65rem; }
.metric span { color: #9fb1c2; font-size: .85rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.panel { background: white; border: 1px solid var(--line); padding: 38px; }
.panel h3 { margin-top: 0; font-size: 1.5rem; }
.panel p { color: var(--muted); }
.details { margin: 28px 0 0; border-top: 1px solid var(--line); }
.detail { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.detail span:first-child { color: var(--muted); }

.process { position: relative; padding-left: 20px; }
.process:before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: #cfd8e1; }
.step { position: relative; display: grid; grid-template-columns: 70px 170px 1fr; gap: 20px; padding: 0 0 38px 20px; }
.step:before { content: ""; position: absolute; left: -16px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.step .step-num { color: #748397; }
.step h4 { margin: 0; }
.step p { margin: 0; color: var(--muted); }

.cta-strip { background: linear-gradient(135deg,#eff4f8,#dfe9f2); padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-strip h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 2.2rem; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid #cfd8e1; background: white; min-height: 48px; padding: 12px 14px; outline: none; transition: .2s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #7e93a7; box-shadow: 0 0 0 3px rgba(125,147,168,.12); }
.form-status { font-size: .9rem; margin-top: 12px; color: var(--muted); }
.form-status.success { color: #176b42; }
.form-status.error { color: #9d2f2f; }

.info-stack { display: grid; gap: 18px; }
.info-card { border-top: 1px solid var(--line); padding-top: 18px; }
.info-card strong { display: block; margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); }

.legal { max-width: 820px; }
.legal h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 4rem; font-weight: 400; letter-spacing: -.04em; }
.legal h2 { margin-top: 42px; }
.legal p, .legal li { color: #48596d; }

.site-footer { background: #0a1929; color: white; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 42px; }
.footer-grid p, .footer-grid a { color: #aebdca; font-size: .9rem; }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #7f94a6; font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; }

.page-hero { background: white; padding: 90px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem,6vw,6rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; margin: 0 0 18px; }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 1.05rem; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 70px; background: white; border: 1px solid var(--line); padding: 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .dark-band, .split, .form-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 74px 0 50px; }
  .hero-art { min-height: 390px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 74px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 66px; }
  .hero h1 { font-size: 3.55rem; }
  .hero-proof { flex-direction: column; gap: 10px; }
  .service-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .step { grid-template-columns: 48px 1fr; }
  .step p { grid-column: 2; }
  .cta-strip { padding: 34px 24px; flex-direction: column; align-items: start; }
  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: 1; }
  .detail { grid-template-columns: 1fr; gap: 3px; }
  .legal h1 { font-size: 3rem; }
  .footer-bottom { flex-direction: column; }
}

/* Contact form reliability / direct-email fallback */
.form-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.text-link{font-size:14px;text-decoration:underline;text-underline-offset:4px}.info-card a,.site-footer a[href^="mailto:"]{color:inherit;text-decoration:underline;text-underline-offset:3px}.form-status{margin-top:12px;font-size:14px}.form-status.success{color:#166534}.form-status.error{color:#b42318}
