@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg-deep: #061c48;
  --bg-blue: #0b3476;
  --blue: #2e83ff;
  --cyan: #54d7ff;
  --text: #f6f9ff;
  --muted: #c5d8f5;
  --glass: rgba(20, 76, 145, .35);
  --glass-border: rgba(157, 211, 255, .25);
  --content: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 77% 14%, rgba(94, 187, 255, .65), transparent 30%),
    radial-gradient(ellipse at 14% 42%, rgba(26, 115, 222, .75), transparent 37%),
    linear-gradient(128deg, #0c3e83 0%, #0b2d69 48%, #071e4d 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: #fff; background: #1689ff; }

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .55;
}
.ambient-one { width: 480px; height: 220px; right: -120px; top: 38%; background: #2ba7ff; transform: rotate(-18deg); }
.ambient-two { width: 380px; height: 240px; left: -150px; bottom: -40px; background: #238bff; }

.section-shell, .site-header { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 500; letter-spacing: -.045em; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand-mark { display: inline-flex; width: 43px; color: #73d9ff; filter: drop-shadow(0 4px 12px #1f8eff80); }
.brand-mark svg { width: 100%; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 52px); }
.nav-link { color: #d9eaff; font-size: .93rem; font-weight: 600; position: relative; padding: 10px 0; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ""; height: 3px; border-radius: 3px; position: absolute; left: 0; right: 0; bottom: 0; background: var(--cyan); box-shadow: 0 0 14px #54d7ff99; }
.header-cta { display: inline-flex; align-items: center; gap: 12px; padding: 10px 19px; border: 1px solid #a8d7ff7a; border-radius: 999px; background: #ffffff0c; font-size: .9rem; font-weight: 600; transition: background .2s, transform .2s; white-space: nowrap; }
.header-cta:hover { background: #ffffff1b; transform: translateY(-1px); }
.header-cta span { font-size: 1.2rem; }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 28px; min-height: 500px; padding-top: 38px; padding-bottom: 54px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; background: #0a4a8e88; border: 1px solid #8acfff22; padding: 4px 16px 4px 5px; margin-bottom: 18px; color: #e1f2ff; font-size: .86rem; }
.eyebrow-pill { display: inline-block; padding: 5px 15px; border-radius: 999px; background: linear-gradient(110deg, #35aaff, #4a91ff); color: white; font-weight: 800; letter-spacing: .02em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(3rem, 5vw, 5.15rem); line-height: 1.08; letter-spacing: -.065em; margin-bottom: 24px; font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #d4f2ff, #58d8ff 48%, #54aaff); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-description { color: #e0edff; max-width: 590px; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.8; margin-bottom: 27px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(110deg, #35baff, #236cff); border: 1px solid #9bdfff88; box-shadow: 0 10px 32px #006bff35, inset 0 1px #ffffff45; }
.button-primary:hover { box-shadow: 0 14px 38px #007dff55, inset 0 1px #ffffff60; }
.button-secondary { background: #ffffff0b; border: 1px solid #68caffbd; }
.button-secondary:hover { background: #ffffff19; }
.play-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #c5ecff; border-radius: 50%; font-size: .58rem; padding-left: 2px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: #c5dcf8; font-size: .82rem; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #55efbd; box-shadow: 0 0 12px #55efbd9c; }

.glass-panel { background: linear-gradient(135deg, rgba(174, 224, 255, .14), rgba(9, 49, 108, .36)); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 #ffffff18, 0 18px 55px #001b4d1a; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.editor-scene { min-height: 405px; position: relative; perspective: 1200px; }
.back-window { position: absolute; border: 1px solid #b4e6ff9c; border-radius: 15px; background: linear-gradient(130deg, #a5e1ff2e, #2470d31a); box-shadow: 0 0 26px #42b8ff1a; }
.back-window-one { width: 74%; height: 73%; top: 1%; right: 13%; transform: rotate(-4deg); }
.back-window-two { width: 48%; height: 66%; top: 18%; right: 0; transform: rotate(-1deg); }
.editor-window { position: absolute; z-index: 2; top: 8%; left: 3%; width: 86%; height: 82%; overflow: hidden; border-radius: 16px; border-color: #b8eaffbb; background: linear-gradient(135deg, #b4e6ff31, #1b63b455); box-shadow: 0 25px 60px #001d4d45, inset 0 1px 0 #fff8; }
.window-topbar { height: 49px; display: flex; align-items: center; gap: 17px; padding: 0 16px; border-bottom: 1px solid #b7e4ff36; background: #eaf8ff16; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #b7e7ff; }
.window-dots i:nth-child(2) { opacity: .75; }
.window-dots i:nth-child(3) { opacity: .5; }
.window-brand { font-size: .7rem; font-weight: 700; }
.mini-mark { color: #6bd8ff; margin-right: 4px; }
.window-action { margin-left: auto; width: 55px; height: 20px; border-radius: 999px; background: #7bcaff27; border: 1px solid #8ed8ff29; }
.editor-body { display: grid; grid-template-columns: 29% 71%; height: calc(100% - 49px); padding: 10px; gap: 9px; }
.file-sidebar { border-right: 1px solid #8acaff23; padding: 2px 7px 0 0; font-size: .62rem; color: #d0e7ff; }
.project-select { padding: 8px 7px; margin-bottom: 7px; border-radius: 7px; background: #7dbfff25; white-space: nowrap; }
.project-select span { float: right; }
.file-item { padding: 5px 7px; border-radius: 5px; margin: 2px 0; white-space: nowrap; }
.file-item.selected { background: #66baff3d; color: #fff; }
.file-item.folder { color: #b9d8f9; }
.code-area { overflow: hidden; padding: 4px 4px 0; border-radius: 7px; background: #041c46b8; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(.43rem, .7vw, .62rem); line-height: 1.95; white-space: nowrap; color: #d4eaff; }
.line-no { display: inline-block; width: 22px; margin-right: 6px; color: #6689b9; text-align: right; }
.code-blue { color: #73d8ff; }.code-pink { color: #ffa8da; }.code-green { color: #a6f1b9; }.code-gap { height: 7px; }
.preview-window { position: absolute; z-index: 3; width: 34%; min-width: 150px; height: 52%; top: 28%; right: 0; padding: 13px; border-radius: 15px; background: linear-gradient(140deg, #d7f5ff32, #0d4d9d9c); transform: translateY(7px); }
.preview-topbar { display: flex; align-items: center; gap: 5px; margin-bottom: 15px; }
.preview-topbar > span { width: 6px; height: 6px; border-radius: 50%; background: #a6ddff; opacity: .8; }
.preview-topbar b { margin-left: auto; font-size: .5rem; font-weight: 600; color: #c8eaff; }
.preview-image { height: 56%; position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg, #8edaff, #318be9); box-shadow: inset 0 1px #fff6; }
.sun { position: absolute; width: 18px; height: 18px; top: 18%; right: 22%; border-radius: 50%; background: #d6f7ff; }
.mountain { position: absolute; bottom: -1px; width: 0; height: 0; border-left: 85px solid transparent; border-right: 85px solid transparent; border-bottom: 76px solid #52b6f3; }
.mountain-back { left: -25px; border-left-width: 70px; border-right-width: 70px; border-bottom-width: 65px; border-bottom-color: #79d5ff; }
.mountain-front { right: -34px; border-left-width: 92px; border-right-width: 92px; border-bottom-width: 88px; border-bottom-color: #2583d6; }
.preview-line { height: 6px; border-radius: 10px; background: #c5eaff5c; margin-top: 9px; }
.line-long { width: 78%; }.line-short { width: 48%; }
.live-badge { position: absolute; bottom: 11%; right: -8px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 1px solid #b8e8ff5b; background: #0a4b8edb; box-shadow: 0 7px 20px #001a3b3d; font-size: .59rem; white-space: nowrap; }
.live-badge .status-dot { width: 6px; height: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 65px; }
.feature-card { border-radius: 18px; padding: 23px 23px 21px; min-height: 230px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: #9ddfff75; background: linear-gradient(135deg, #aee4ff22, #14549c70); }
.feature-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid #b1e5ff9c; border-radius: 15px; background: linear-gradient(145deg, #7ed6ff62, #3587ed8a); box-shadow: inset 0 1px #fff5, 0 7px 20px #003b8c2e; color: #d6f4ff; }
.feature-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h2 { font-size: 1.27rem; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 8px; }
.feature-card p { color: #d6e7fc; font-size: .92rem; line-height: 1.75; margin-bottom: 0; }

.section-heading { max-width: 740px; margin: 0 auto 32px; text-align: center; }
.section-kicker { color: #9edfff; font-size: .75rem; font-weight: 800; letter-spacing: .2em; }
.section-heading h2, .closing-card h2 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.15; letter-spacing: -.05em; margin: 12px 0 15px; }
.section-heading p { max-width: 680px; margin: 0 auto; color: var(--muted); }
.principle-section { padding-top: 32px; padding-bottom: 85px; }
.principle-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.principle-card { padding: 28px; border-radius: 18px; }
.principle-number { display: inline-block; color: #83d9ff; font-size: .8rem; font-weight: 800; letter-spacing: .15em; margin-bottom: 12px; }
.principle-card h3 { font-size: 1.25rem; letter-spacing: -.025em; margin-bottom: 10px; }
.principle-card p { color: var(--muted); margin-bottom: 0; }
.workflow-section { padding-bottom: 90px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.workflow-step { padding: 24px 0 0; border-top: 1px solid #a2d9ff52; }
.workflow-step > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid #7fd6ff8c; background: #3baaff24; color: #a8e6ff; border-radius: 12px; font-size: .8rem; font-weight: 800; margin-bottom: 15px; }
.workflow-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.workflow-step p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.closing-cta { padding-bottom: 55px; }
.closing-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 42px; border-radius: 22px; background: linear-gradient(110deg, #3c9ffb38, #163f80a6); }
.closing-card h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.closing-card p { margin-bottom: 0; color: var(--muted); }
.closing-card .button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 25px; padding-bottom: 30px; border-top: 1px solid #a2d9ff35; color: #b9d2f2; font-size: .82rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .section-shell, .site-header { width: min(var(--content), calc(100% - 44px)); }
  .site-header { gap: 16px; }
  .brand { font-size: 1.18rem; }
  .brand-mark { width: 36px; }
  .primary-nav { gap: 20px; }
  .hero { grid-template-columns: 1fr .9fr; gap: 12px; }
  .hero h1 { font-size: clamp(2.8rem, 5.1vw, 4.2rem); }
  .feature-grid { gap: 14px; }
  .feature-card { padding: 19px; }
}
@media (max-width: 780px) {
  .section-shell, .site-header { width: calc(100% - 36px); }
  .site-header { min-height: 78px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; margin-left: auto; color: white; background: #ffffff0c; border: 1px solid #a8d7ff55; border-radius: 12px; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; border-radius: 3px; background: currentColor; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border: 1px solid var(--glass-border); border-radius: 16px; background: #082a60f2; box-shadow: 0 20px 40px #00153866; }
  .primary-nav.is-open { display: flex; }
  .nav-link { padding: 10px 12px; border-radius: 8px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: #ffffff14; }
  .header-cta { padding: 9px 12px; font-size: .8rem; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; gap: 14px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .editor-scene { width: min(100%, 580px); margin: 0 auto; min-height: 365px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); padding-bottom: 45px; }
  .feature-card { min-height: 215px; }
  .principle-section { padding-bottom: 65px; }
  .workflow-steps { gap: 18px; }
  .closing-card { padding: 30px; }
}
@media (max-width: 540px) {
  .section-shell, .site-header { width: calc(100% - 30px); }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 31px; }
  .header-cta { gap: 6px; padding: 8px 10px; }
  .hero { padding-top: 20px; padding-bottom: 38px; }
  .eyebrow { font-size: .72rem; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.65rem); }
  .hero-description { font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-note { align-items: flex-start; font-size: .77rem; }
  .editor-scene { min-height: 285px; margin-top: 10px; }
  .editor-window { left: 0; width: 91%; height: 81%; }
  .preview-window { min-width: 118px; width: 34%; padding: 9px; right: -2px; }
  .window-topbar { height: 39px; padding: 0 10px; gap: 9px; }
  .editor-body { height: calc(100% - 39px); padding: 7px; gap: 5px; }
  .file-sidebar { font-size: .48rem; }
  .file-item { padding: 4px 3px; }
  .project-select { padding: 6px 4px; }
  .code-area { font-size: .39rem; line-height: 1.9; }
  .line-no { width: 13px; margin-right: 3px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: auto; padding: 20px; }
  .feature-icon { width: 54px; height: 54px; }
  .principle-layout, .workflow-steps { grid-template-columns: 1fr; }
  .principle-card { padding: 23px; }
  .section-heading { text-align: left; }
  .section-heading p { margin-left: 0; }
  .workflow-steps { gap: 22px; }
  .closing-card { align-items: flex-start; flex-direction: column; padding: 25px 22px; }
  .closing-card .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
