*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ccff66;
  --accent-dark: #a6cc52;
  --font-heading: 'Jost', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo svg { display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right .login { font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.nav-right .login:hover { color: var(--text); }
.nav-right .signup {
  font-size: 14px; font-weight: 500;
  padding: 7px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--text);
  cursor: pointer; transition: all .2s;
  margin-left: 8px;
}
.nav-right .signup:hover { background: rgba(255,255,255,0.08); }

/* Mobile menu button */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 101;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: #000000;
  z-index: 99;
  flex-direction: column;
  padding: 40px 24px;
  gap: 8px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-size: 18px; color: var(--text-secondary);
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-mobile-overlay a:hover { color: var(--text); }
.nav-mobile-overlay a:last-child { border-bottom: none; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  font-size: 14px; color: var(--text-secondary); transition: color .2s;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
}
.nav-dropdown-trigger::after {
  content: ''; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 4px solid currentColor;
  opacity: 0.5; transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--text); }
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px);
  left: 50%; transform: translateX(-50%);
  background: #151515; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 6px; min-width: 190px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5); flex-direction: column; gap: 2px;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  font-size: 13px; color: var(--text-secondary);
  padding: 10px 14px; border-radius: 8px; transition: all .15s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* ── HERO ── */
.hero {
  max-width: 1400px; margin: 0 auto;
  padding: 80px 40px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.hero-text {
  flex: 1; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 72px; font-weight: 500; line-height: 1.05;
  letter-spacing: -2px; max-width: 600px;
}
.hero-highlight { color: #ccff66; }
.hero-cta {
  flex-shrink: 0; margin-top: 12px;
  display: inline-block; padding: 12px 28px;
  background: #fff; color: #000; border-radius: 10px;
  font-size: 15px; font-weight: 500; transition: opacity .2s;
}
.hero-cta:hover { opacity: 0.85; }

/* ── EDITOR MOCKUP ── */
.editor-wrap { max-width: 1400px; margin: 60px auto 0; padding: 0 40px; }
.editor {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; position: relative;
}
.editor-titlebar {
  display: flex; align-items: center; gap: 0;
  padding: 12px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.titlebar-dots { display: flex; gap: 6px; margin-right: 16px; }
.titlebar-dots span { width: 12px; height: 12px; border-radius: 50%; }
.titlebar-dots span:nth-child(1) { background: #ff5f57; }
.titlebar-dots span:nth-child(2) { background: #ffbd2e; }
.titlebar-dots span:nth-child(3) { background: #28c840; }
.titlebar-icons { display: flex; gap: 12px; margin-right: 20px; }
.titlebar-icons span {
  width: 20px; height: 20px; border-radius: 4px;
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text-secondary);
}
.titlebar-tabs { display: flex; gap: 0; flex: 1; }
.titlebar-tab {
  padding: 8px 20px; font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
  border-right: 1px solid var(--border); position: relative;
}
.titlebar-tab.active { color: var(--text); background: rgba(255,255,255,0.03); }
.titlebar-tab .tab-icon { font-size: 14px; }
.titlebar-tab .close { font-size: 11px; opacity: 0.4; margin-left: 8px; }
.editor-body { display: flex; height: 520px; }

/* Left panel (layers) */
.editor-left {
  width: 280px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; background: var(--surface);
}
.panel-toolbar { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.panel-toolbar .tool-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 14px; cursor: pointer; transition: background .15s;
}
.panel-toolbar .tool-icon:hover { background: var(--surface-3); }
.panel-tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--border); }
.panel-tabs span {
  padding: 10px 14px; font-size: 12px; color: var(--text-secondary);
  cursor: pointer; position: relative; transition: color .15s;
}
.panel-tabs span.active { color: var(--text); background: rgba(255,255,255,0.06); border-radius: 6px 6px 0 0; }
.panel-select {
  margin: 10px 12px; padding: 8px 12px;
  background: var(--surface-2); border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.panel-select svg { opacity: 0.4; }
.panel-search {
  margin: 0 12px 10px; padding: 8px 12px;
  background: var(--surface-2); border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.layer-tree { flex: 1; overflow-y: auto; padding: 4px 0; }
.layer-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12px; color: var(--text-secondary);
  cursor: pointer; transition: background .1s; white-space: nowrap;
}
.layer-item:hover { background: rgba(255,255,255,0.03); }
.layer-item.selected { background: var(--accent); color: #000; border-radius: 6px; margin: 1px 8px; }
.layer-item .indent { display: inline-block; }
.layer-item .icon { font-size: 11px; opacity: 0.6; width: 16px; text-align: center; }
.layer-item .badge { margin-left: auto; font-size: 11px; color: var(--accent); }
.layer-item .size-badge { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.layer-toggle { width: 12px; font-size: 8px; text-align: center; cursor: pointer; color: var(--text-muted); }

/* Center canvas */
.editor-canvas { flex: 1; position: relative; overflow: hidden; background: #0a0a0a; }
.canvas-breakpoint {
  position: absolute; top: 12px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; z-index: 5;
}
.breakpoint-left { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.breakpoint-left .play-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #000;
}
.breakpoint-right { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.breakpoint-right .plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #000;
}

/* Website preview inside canvas */
.canvas-site {
  position: absolute; top: 44px; left: 16px; right: 16px; bottom: 16px;
  background: #111; border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
}
.site-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 20px; font-size: 9px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1px;
}
.site-nav span { padding: 4px 10px; border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; }
.site-hero-title {
  font-size: 72px; font-weight: 800; text-align: center;
  padding: 10px 40px 0; letter-spacing: -3px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.site-media {
  margin: 16px 20px; height: 180px;
  background: linear-gradient(135deg, #1a1a3e 0%, #0a0a1a 50%, #1a0a2a 100%);
  border-radius: 8px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.site-media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(60,60,200,0.3) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 60%, rgba(100,100,255,0.15) 0%, transparent 60%);
}
.site-media .play-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 2;
}

/* Cursors & avatars on canvas */
.cursor-avatar { position: absolute; z-index: 10; display: flex; align-items: flex-start; gap: 4px; }
.cursor-arrow { width: 14px; height: 18px; position: relative; }
.cursor-arrow::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 0; border-left: 6px solid var(--accent);
  border-right: 6px solid transparent; border-bottom: 14px solid transparent;
  border-top: 0; transform: rotate(-10deg);
}
.cursor-arrow.blue::before { border-left-color: #ccff66; }
.cursor-arrow.green::before { border-left-color: #00cc66; }
.cursor-label { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; color: #fff; white-space: nowrap; }
.cursor-label.blue { background: #ccff66; color: #000; }
.cursor-label.green { background: #00aa55; }
.cursor-label.purple { background: #8844ee; }

/* Comment bubble */
.comment-bubble { position: absolute; z-index: 10; display: flex; align-items: center; gap: 8px; }
.comment-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.comment-text {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
}
.comment-send {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #000; flex-shrink: 0;
}

/* Right panel (invite popup) */
.editor-right {
  width: 320px; border-left: 1px solid var(--border);
  background: var(--surface); padding: 20px;
}
.invite-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.invite-input { display: flex; gap: 8px; margin-bottom: 20px; }
.invite-input input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--accent);
  border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--text);
  outline: none; font-family: inherit;
}
.invite-input .role-select {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.invite-input .send-btn {
  background: var(--accent); border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 13px; font-weight: 500;
  color: #000; cursor: pointer; font-family: inherit;
}
.permission-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.checkbox.checked { background: var(--accent); color: #000; }
.checkbox.unchecked { background: var(--surface-3); border: 1px solid var(--border); }
.permission-label { color: var(--text); }
.permission-desc { color: var(--text-muted); font-size: 12px; }
.project-link {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.link-icon { color: var(--accent); font-size: 16px; }
.project-link-text .link-title { font-weight: 500; }
.project-link-text .link-desc { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── FEATURES SECTION ── */
.features-section { max-width: 1400px; margin: 120px auto 0; padding: 0 40px; }
.features-header { font-size: 14px; color: var(--text-muted); margin-bottom: 40px; letter-spacing: -0.2px; }
.features-layout { display: flex; gap: 60px; align-items: flex-start; }
.features-tabs { flex: 0 0 380px; position: sticky; top: 100px; }
.feature-tab { padding: 24px 0; border-top: 1px solid var(--border); cursor: pointer; transition: all .3s; }
.feature-tab:last-child { border-bottom: 1px solid var(--border); }
.feature-tab h3 {
  font-family: var(--font-heading); font-size: 28px; font-weight: 500;
  letter-spacing: -0.5px; color: var(--text-muted); transition: color .3s;
}
.feature-tab.active h3 { color: var(--text); }
.feature-tab p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease; margin-top: 0;
}
.feature-tab.active p { max-height: 200px; opacity: 1; margin-top: 12px; }
.feature-tab .learn-more { display: none; margin-top: 12px; font-size: 13px; color: var(--accent); }
.feature-tab.active .learn-more { display: inline-block; }
.features-visuals-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; margin-right: -120px; }
.feature-visual-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; min-height: 500px; max-width: 100%; position: relative;
  display: flex; flex-direction: column; will-change: transform, opacity;
}
.feature-visual-panel.mp-panel { flex-direction: row; }
.cite-force-visible { opacity: 1 !important; transform: none !important; transition: none !important; }

/* On-page editing visual */
.vis-editing { padding: 20px; }
.vis-editing .blog-bar {
  background: var(--surface-2); border-radius: 10px;
  padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px; border: 1px solid var(--border);
}
.blog-bar-left { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.blog-bar-left .site-name { color: var(--text); font-weight: 500; }
.blog-bar-left .divider { color: var(--text-muted); }
.blog-bar-left .page-name { color: var(--text-secondary); }
.blog-bar-right { display: flex; align-items: center; gap: 12px; }
.blog-bar-right .status { font-size: 11px; color: var(--text-muted); }
.blog-bar-right .edit-btn {
  padding: 6px 14px; background: var(--accent); color: #000;
  border-radius: 8px; font-size: 12px; font-weight: 500;
}
.vis-editing .content-area {
  background: var(--surface-2); border-radius: 10px; flex: 1;
  padding: 40px; border: 1px solid var(--border);
}
.content-area .edit-indicator { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; }
.content-area .edit-indicator span { color: var(--accent); }
.content-area h2 { font-size: 36px; font-weight: 600; margin-bottom: 16px; letter-spacing: -1px; }
.content-area p.body-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.typing-cursor {
  display: inline-block; width: 2px; height: 18px;
  background: var(--accent); animation: blink 1s infinite;
  vertical-align: text-bottom; margin-left: 2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Live feedback visual */
.vis-feedback { padding: 20px; position: relative; }
.vis-feedback .toolbar-row {
  display: flex; align-items: center; gap: 4px;
  padding: 10px; background: var(--surface-2);
  border-radius: 10px; border: 1px solid var(--border); margin-bottom: 16px;
}
.toolbar-row .tool {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 14px; cursor: pointer;
}
.toolbar-row .tool.active { background: rgba(255,255,255,0.08); color: var(--text); }
.toolbar-row .zoom {
  margin-left: auto; padding: 6px 12px;
  background: var(--surface-3); border-radius: 6px;
  font-size: 12px; color: var(--text-secondary);
}
.vis-feedback .canvas-preview {
  background: var(--surface-2); border-radius: 10px;
  border: 1px solid var(--border); flex: 1;
  position: relative; height: 380px; overflow: hidden;
  display: flex; flex-direction: column;
}
.canvas-preview .heading-row { display: flex; gap: 16px; padding: 20px 20px 0; }
.heading-item {
  flex: 1; padding: 16px; background: var(--surface-3);
  border-radius: 8px; font-size: 12px; color: var(--text-secondary);
}
.heading-item.active { border: 1px solid var(--accent); color: var(--accent); }
.feedback-comment {
  position: absolute; bottom: 80px; left: 30px;
  display: flex; align-items: flex-end; gap: 6px; z-index: 5;
}
.feedback-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #ccff66, #a6cc52);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
}
.feedback-msg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: var(--text); max-width: 260px;
}

/* Multiplayer & Expert visuals */
.vis-multiplayer { padding: 0; }
.vis-expert { padding: 0; align-items: stretch; text-align: left; gap: 0; height: 100%; }

/* ── CONTENT STRUCTURE SECTION ── */
.structure-section { max-width: 1400px; margin: 140px auto 0; padding: 0 40px; }
.structure-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px;
}
.structure-header h2 {
  font-family: var(--font-heading); font-size: 52px; font-weight: 500;
  letter-spacing: -1.5px; line-height: 1.1;
}
.structure-arrows { display: flex; gap: 8px; }
.structure-arrows button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.structure-arrows button:hover { background: var(--surface-2); }
.structure-cards {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 20px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.structure-cards::-webkit-scrollbar { display: none; }
.structure-card {
  flex: 0 0 380px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column;
}
.card-visual {
  height: 220px; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.card-visual.staging-bg { background: linear-gradient(180deg, #0a0a0a 0%, #111 100%); }
.card-visual.colors-bg { background: var(--surface); }
.card-visual.deploy-bg { background: linear-gradient(180deg, #0a0a0a 0%, #111 100%); }
.card-visual.history-bg { background: var(--surface); }
.card-visual.password-bg { background: var(--surface); }
.card-visual.workspace-bg { background: var(--surface); }
.card-content { padding: 24px; }
.card-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── STRUCTURE WRAPPER (Stripe-inspired) ── */
.structure-wrapper {
  --surface: #1a2e14; --surface-2: rgba(255,255,255,0.05);
  --surface-3: rgba(255,255,255,0.08); --border: rgba(255,255,255,0.08);
  --text-secondary: #8aaa7b; --text-muted: #5a7a4a;
  background: #000000; padding: 180px 0 160px; margin-top: 0;
  position: relative; overflow: hidden;
}
.structure-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(30,70,15,0.5) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(25,60,10,0.3) 0%, transparent 45%);
  z-index: 0; opacity: var(--before-opacity, 0);
}
.structure-wrapper::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom,
    #000000 0%, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.45) 25%,
    transparent 40%, transparent 60%,
    rgba(0,0,0,0.45) 75%, rgba(0,0,0,0.85) 90%, #000000 100%
  );
}
.structure-wrapper .structure-section { margin-top: 0; position: relative; z-index: 2; }
.structure-wrapper .structure-header h2 { color: #fff; }
.structure-wrapper .structure-arrows button { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.structure-wrapper .structure-arrows button:hover { background: rgba(255,255,255,0.08); }
.structure-wrapper .structure-card {
  background: rgba(15,40,10,0.55); border-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.structure-wrapper .card-visual.staging-bg,
.structure-wrapper .card-visual.deploy-bg { background: rgba(15,45,10,0.6); }
.structure-wrapper .card-visual.colors-bg,
.structure-wrapper .card-visual.history-bg,
.structure-wrapper .card-visual.password-bg,
.structure-wrapper .card-visual.workspace-bg { background: rgba(255,255,255,0.02); }

/* Gradient lines */
.gradient-lines-container { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.gradient-lines-svg { width: 100%; height: 100%; }
.gradient-lines-svg path { fill: none; stroke-width: 1.2; }
.line-group-1 { animation: floatLines1 14s ease-in-out infinite alternate; }
.line-group-2 { animation: floatLines2 11s ease-in-out infinite alternate-reverse; }
@keyframes floatLines1 { 0% { transform: translate(0,0); } 50% { transform: translate(12px,-18px); } 100% { transform: translate(-8px,12px); } }
@keyframes floatLines2 { 0% { transform: translate(0,0); } 50% { transform: translate(-10px,14px); } 100% { transform: translate(15px,-10px); } }

/* ── CUSTOMERS SECTION ── */
.customers-section { max-width: 1400px; margin: 140px auto 0; padding: 0 40px; }
.customers-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.customers-header h2 {
  font-family: var(--font-heading); font-size: 52px; font-weight: 500;
  letter-spacing: -1.5px; line-height: 1.1;
}
.customers-header a { font-size: 15px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.customers-header a:hover { color: var(--text); }
.customers-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.customers-scroll::-webkit-scrollbar { display: none; }
.customer-card {
  flex: 0 0 380px; height: 300px; border-radius: 16px; overflow: hidden;
  position: relative; display: flex; align-items: flex-end; padding: 24px;
}
.customer-card .customer-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%); }
.customer-card .customer-logo { position: relative; z-index: 2; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.customer-card .customer-actions { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.customer-card .customer-actions a {
  padding: 6px 12px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  border-radius: 20px; font-size: 11px; color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1); transition: all .2s;
}
.customer-card .customer-actions a:hover { background: rgba(0,0,0,0.7); color: var(--text); }
.customer-card.clearscore { background: linear-gradient(135deg, #3a5a2a, #1a2a1a); }
.customer-card.octopus { background: linear-gradient(135deg, #2a1a2a, #1a1a2a); }
.customer-card.zeneducate { background: linear-gradient(135deg, #1a2a3a, #0a1a2a); }
.customer-card.other { background: linear-gradient(135deg, #2a2a1a, #1a1a0a); }

/* ── LOGO BAR ── */
.logo-bar {
  padding: 40px 0 24px;
  max-width: 1400px; margin: 0 auto;
}
.logo-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.logo-bar-inner img {
  height: 40px; width: auto; opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity .3s, filter .3s;
  object-fit: contain;
}
.logo-bar-inner img:hover {
  opacity: 0.9; filter: grayscale(0%);
}
.logo-bar-inner img.logo-bright {
  opacity: 0.65;
}
@media (max-width: 768px) {
  .logo-bar-inner { gap: 20px; }
  .logo-bar-inner img { height: 30px; }
}

/* ── CTA SECTION ── */
.cta-section { text-align: center; padding: 140px 40px; max-width: 1400px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-heading); font-size: 80px; font-weight: 500;
  letter-spacing: -3px; line-height: 1.05; font-style: italic;
}
.cta-buttons { margin-top: 40px; display: flex; gap: 12px; justify-content: center; }
.cta-buttons .btn-primary {
  padding: 14px 30px; background: #fff; color: #000;
  border-radius: 10px; font-size: 15px; font-weight: 500;
  border: none; cursor: pointer; font-family: inherit; transition: opacity .2s;
}
.cta-buttons .btn-primary:hover { opacity: 0.85; }
.cta-buttons .btn-secondary {
  padding: 14px 30px; background: var(--surface-2); color: var(--text);
  border-radius: 10px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--border); cursor: pointer; font-family: inherit; transition: background .2s;
}
.cta-buttons .btn-secondary:hover { background: var(--surface-3); }

/* ── FOOTER ── */
.footer { max-width: 1400px; margin: 0 auto; padding: 60px 40px 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; gap: 80px; }
.footer-brand { flex: 0 0 240px; }
.footer-logo { margin-bottom: 20px; }
.footer-social { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-social a { width: 20px; height: 20px; color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer-social a:hover { color: var(--text); }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #00cc66; }
.footer-columns { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.footer-col h5 { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--text-secondary); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; gap: 16px;
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}

/* ── FOOTER ENQUIRY FORM ── */
.footer-enquiry {
  margin-bottom: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-enquiry-inner {
  display: flex; gap: 60px; align-items: flex-start;
}
.footer-enquiry-text { flex: 0 0 240px; }
.footer-enquiry-text h4 {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 8px;
}
.footer-enquiry-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.footer-enquiry-form { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.footer-enquiry-form .form-field {
  flex: 1 1 180px; min-width: 140px;
}
.footer-enquiry-form input,
.footer-enquiry-form textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; font-size: 13px; color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.footer-enquiry-form input:focus,
.footer-enquiry-form textarea:focus {
  border-color: var(--accent);
  background: rgba(204,255,102,0.03);
}
.footer-enquiry-form input::placeholder,
.footer-enquiry-form textarea::placeholder { color: var(--text-muted); }
.footer-enquiry-form .form-field-full { flex: 1 1 100%; }
.footer-enquiry-form textarea { resize: vertical; min-height: 44px; max-height: 120px; }
.footer-enquiry-form .form-submit {
  padding: 11px 28px; background: var(--accent); color: #000;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .2s;
  white-space: nowrap; align-self: flex-start;
}
.footer-enquiry-form .form-submit:hover { opacity: 0.85; }
.footer-enquiry-form .form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.footer-form-status {
  width: 100%; font-size: 13px; margin-top: 4px;
}
.footer-form-status.success { color: #4ade80; }
.footer-form-status.error { color: #ff4466; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ── CONTACT PAGE ── */
.contact-page { max-width: 1400px; margin: 0 auto; padding: 80px 40px 120px; }
.contact-layout { display: flex; gap: 80px; align-items: flex-start; }
.contact-info { flex: 0 0 380px; }
.contact-info h1 {
  font-family: var(--font-heading);
  font-size: 52px; font-weight: 500; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 20px;
}
.contact-info p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.contact-detail svg { flex-shrink: 0; color: var(--accent); }
.contact-detail-text { font-size: 14px; color: var(--text-secondary); }
.contact-detail-text strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; }

.contact-form-wrap {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-row { display: flex; gap: 16px; }
.contact-form-row > * { flex: 1; }
.contact-form label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; font-size: 14px; color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(204,255,102,0.03);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .submit-btn {
  padding: 14px 32px; background: var(--accent); color: #000;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .2s;
  align-self: flex-start;
}
.contact-form .submit-btn:hover { opacity: 0.85; }
.contact-form .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-form-status { font-size: 14px; margin-top: 8px; }
.contact-form-status.success { color: #4ade80; }
.contact-form-status.error { color: #ff4466; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 48px; }
  .editor-body { height: 400px; }
  .editor-right { display: none; }
  .features-layout { flex-direction: column; }
  .features-tabs { flex: auto; position: relative; top: auto; overflow: hidden; }
  .features-visuals-column { margin-right: 0; }
  .features-visuals-column.mobile-hidden { display: none !important; }
  .features-tabs .feature-visual-panel {
    margin: 16px 0 8px; border-radius: 12px;
    min-height: 350px; border-right: 1px solid var(--border);
  }
  .feature-visual-panel { position: relative; z-index: 1; }
  .structure-header h2, .customers-header h2 { font-size: 36px; }
  .cta-section h2 { font-size: 52px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
  .footer-enquiry-inner { flex-direction: column; gap: 24px; }
  .footer-enquiry-text { flex: auto; }
  .contact-layout { flex-direction: column; gap: 40px; }
  .contact-info { flex: auto; }
  .contact-info h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 40px 20px 0; flex-direction: column; }
  .hero-text {
    flex-direction: column; gap: 16px;
  }
  .hero-text p { max-width: 100% !important; }
  .hero-cta { align-self: flex-start; }
  .editor-wrap { padding: 0 20px; }
  .editor-left { width: 200px; }
  .features-section, .structure-section, .customers-section { padding: 0 20px; }
  .structure-card { flex: 0 0 300px; }
  .customer-card { flex: 0 0 300px; }
  .cta-section { padding: 80px 20px; }
  .cta-section h2 { font-size: 36px; }
  .footer { padding: 40px 20px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .contact-page { padding: 40px 0 80px; }
  .contact-layout { gap: 24px; padding: 0 20px; }
  .contact-form-wrap { padding: 24px; width: 100%; border-radius: 0; border-left: none; border-right: none; margin: 0 -20px; width: calc(100% + 40px); }
  .contact-form-row { flex-direction: column; gap: 16px; }
}

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.show { opacity: 1; transform: none; }