:root {
  --navy: #082f5f;
  --blue: #0f67d8;
  --blue-bright: #2387ff;
  --blue-soft: #eaf4ff;
  --sky: #d9ecff;
  --ink: #10243e;
  --muted: #5d6d80;
  --line: #dbe5f0;
  --surface: #ffffff;
  --canvas: #f6f9fd;
  --shadow: 0 24px 70px rgba(8, 47, 95, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "DM Sans", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(219,229,240,.75); backdrop-filter: blur(18px); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 22px/1 "Manrope", sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: linear-gradient(145deg, var(--blue-bright), var(--navy)); box-shadow: 0 9px 18px rgba(15,103,216,.25); }
.brand-accent { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.nav-cta) { color: #40536b; transition: color .2s; }
.main-nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 11px 18px; color: #fff; border-radius: 11px; background: var(--navy); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { min-height: 720px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.17; letter-spacing: -.035em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(43px, 5.4vw, 72px); }
h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 655px; margin: 0 0 32px; color: var(--muted); font-size: 18px; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 25px rgba(15,103,216,.22); }
.button-primary:hover { background: #095aba; box-shadow: 0 16px 34px rgba(15,103,216,.3); }
.button-secondary { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.hero-topics { display: flex; gap: 9px; margin-top: 36px; flex-wrap: wrap; }
.hero-topics span, .project-tags span { padding: 7px 12px; color: #40617f; border: 1px solid #dceafb; border-radius: 999px; background: #f5faff; font-size: 12px; font-weight: 600; }
.hero-visual { min-height: 440px; position: relative; display: grid; place-items: center; }
.visual-card { border: 1px solid rgba(207,224,241,.9); background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.card-main { width: min(100%, 470px); overflow: hidden; border-radius: var(--radius); transform: rotate(1.5deg); }
.code-top { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 20px; color: #7690aa; border-bottom: 1px solid var(--line); font-size: 12px; }
.code-top i, .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dbe5ef; }
.code-top span { margin-left: 8px; }
.code-body { padding: 32px 34px 38px; font: 500 15px/2.1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-body p { display: flex; margin: 0; }
.code-body b { width: 35px; color: #a7b6c5; font-weight: 400; }
.code-blue { color: var(--blue); font-weight: 700; }
.floating-note { position: absolute; right: -10px; bottom: 14px; display: flex; gap: 12px; align-items: center; padding: 17px 20px; border-radius: 16px; transform: rotate(-2deg); }
.floating-note .note-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: var(--blue); }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 13px; }
.floating-note small { color: var(--muted); font-size: 11px; }
.dot-pattern { position: absolute; z-index: -1; width: 150px; height: 150px; right: -30px; top: 8px; opacity: .55; background-image: radial-gradient(#7bb8f5 1.5px, transparent 1.5px); background-size: 14px 14px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { width: 450px; height: 450px; right: -230px; top: -170px; background: rgba(61,153,255,.09); }
.hero-orb-two { width: 240px; height: 240px; left: -150px; bottom: -100px; background: rgba(8,47,95,.05); }

.about { background: var(--navy); color: #fff; }
.about-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 100px; }
.about h2, .projects h2, .notes h2, .contact h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 49px); }
.about .eyebrow { color: #73baff; }
.about-copy { color: #c8d8e9; font-size: 17px; }
.about-copy p:first-child { margin-top: 3px; }
.values { display: grid; gap: 13px; margin-top: 34px; }
.values div { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.values strong { color: #65b1ff; font-family: "Manrope", sans-serif; }
.values span { color: #fff; font-weight: 600; }

.notes { background: var(--canvas); }
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section-bar .eyebrow { margin-bottom: 12px; }
.coming-label { padding: 7px 12px; color: var(--blue); border-radius: 999px; background: var(--blue-soft); font-size: 12px; font-weight: 700; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { min-height: 410px; display: flex; flex-direction: column; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.article-card:hover { transform: translateY(-6px); border-color: #b7d5f7; box-shadow: 0 20px 50px rgba(13,57,105,.09); }
.article-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 16px; font: 700 18px "Manrope", sans-serif; }
.icon-security { color: #075fae; background: #e1f2ff; }
.icon-code { color: #7654bc; background: #eee8ff; }
.icon-note { color: #067b68; background: #dff7f1; }
.article-meta { display: flex; gap: 7px; color: #718194; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-card h3 { margin: 16px 0 13px; font-size: 21px; letter-spacing: -.025em; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; }
.article-link { margin-top: auto; padding-top: 22px; color: var(--blue); font-size: 13px; font-weight: 700; }

.projects { background: #fff; }
.section-heading.narrow { max-width: 650px; margin-bottom: 44px; }
.project-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; color: #fff; border-radius: 28px; background: linear-gradient(135deg, #082f5f 0%, #0b4f99 100%); box-shadow: 0 28px 70px rgba(8,47,95,.18); }
.project-content { padding: 58px; }
.project-kicker { color: #77bcff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-content h3 { margin: 15px 0 18px; font-size: 34px; }
.project-content p { margin: 0 0 24px; color: #cbdced; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.project-tags span { color: #d7e9fb; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.project-preview { min-height: 480px; display: flex; align-items: center; padding: 50px 0 50px 30px; background: radial-gradient(circle at 60% 40%, rgba(58,158,255,.42), transparent 56%); }
.browser-frame { width: 105%; overflow: hidden; border: 1px solid rgba(255,255,255,.3); border-radius: 18px 0 0 18px; background: #f5f8fc; box-shadow: 0 28px 60px rgba(0,0,0,.25); }
.browser-bar { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 16px; color: #718194; background: #fff; font-size: 9px; }
.browser-bar span { margin-left: 10px; }
.dashboard-mock { height: 300px; display: grid; grid-template-columns: 86px 1fr; }
.dashboard-mock aside { display: flex; flex-direction: column; gap: 20px; padding: 20px; background: #0a3b73; }
.dashboard-mock aside b { width: 42px; height: 8px; margin-bottom: 14px; background: #fff; border-radius: 5px; }
.dashboard-mock aside i { width: 38px; height: 5px; background: rgba(255,255,255,.42); border-radius: 4px; }
.mock-main { padding: 26px; }
.mock-main > span { display: block; width: 145px; height: 14px; margin-bottom: 24px; background: #1d3e62; border-radius: 5px; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.mock-stats i { height: 65px; border: 1px solid #dbe5f0; border-radius: 8px; background: #fff; }
.mock-main > b { display: block; height: 22px; margin-top: 8px; border-radius: 4px; background: #e7edf4; }

.contact { padding-top: 36px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 58px 64px; color: #fff; border-radius: 28px; background: linear-gradient(125deg, #0d63ce, #0a3c76); box-shadow: var(--shadow); }
.contact-card > div { max-width: 700px; }
.contact-card h2 { margin-bottom: 15px; }
.contact-card p { margin: 0; color: #dbeaff; }
.eyebrow-light { color: #b9dcff; }
.button-white { flex: 0 0 auto; color: var(--navy); background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.13); }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
.brand-footer { color: var(--ink); font-size: 19px; }
.brand-footer .brand-mark { width: 30px; height: 30px; font-size: 15px; }
.footer-wrap p { margin: 0; }
.footer-wrap p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 82px 0; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero-grid, .about-grid, .project-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 50px; }
  .about-grid { gap: 36px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card:last-child { grid-column: 1 / -1; }
  .project-preview { min-height: 390px; padding-left: 50px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .footer-wrap { grid-template-columns: 1fr; text-align: center; }
  .brand-footer { justify-content: center; }
  .footer-wrap p:last-child { text-align: center; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-cta { text-align: center; }
  .hero { padding-top: 70px; }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 350px; }
  .code-body { padding: 25px 20px 32px; font-size: 12px; }
  .floating-note { right: 0; bottom: -4px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card:last-child { grid-column: auto; }
  .section-bar { align-items: flex-start; flex-direction: column; }
  .project-content { padding: 36px 28px; }
  .project-content h3 { font-size: 28px; }
  .project-preview { min-height: 320px; padding: 18px 0 30px 20px; }
  .dashboard-mock { height: 240px; grid-template-columns: 68px 1fr; }
  .contact-card { padding: 38px 28px; }
  .button-white { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

