/* ==========================================================================
   Lumen AI — Design System & Apple Typography
   ========================================================================== */

:root {
  /* Color Palette — Deep Obsidian & Electric Lilac */
  --bg: #070709;
  --bg-secondary: #0d0d12;
  --surface: #121218;
  --surface-hover: #181822;
  --surface-glass: rgba(18, 18, 24, 0.65);
  --surface-glass-card: rgba(22, 22, 30, 0.55);
  --surface-glass-hover: rgba(28, 28, 38, 0.75);

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(206, 175, 255, 0.35);

  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-muted: #515156;

  /* Accent & Apple Intelligence Radiance */
  --lime: #d9c2ff;
  --accent: #d0b5ff;
  --accent-light: #f1e8ff;
  --accent-vivid: #a872ff;
  --accent-glow: rgba(196, 153, 255, 0.28);
  --accent-gradient: linear-gradient(135deg, #f3ebff 0%, #d4b5ff 45%, #9e6bf8 100%);
  --accent-btn: linear-gradient(180deg, #dfcbff 0%, #c49eff 100%);

  /* Apple Typography Stack */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Cascadia Code", monospace;
  --serif: "New York", -apple-system-ui-serif, Georgia, "Times New Roman", serif;

  /* Easing curves */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 50px rgba(186, 142, 255, 0.16);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  selection-background-color: rgba(206, 175, 255, 0.3);
}

::selection {
  background: rgba(206, 175, 255, 0.32);
  color: #fff;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Ambient Glow & Film Grain */
.grain {
  pointer-events: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(140px);
  border-radius: 50%;
  z-index: -1;
  transition: opacity 0.8s ease;
}

.glow-one {
  width: 650px;
  height: 480px;
  right: -120px;
  top: 80px;
  background: radial-gradient(circle, rgba(170, 134, 232, 0.22) 0%, rgba(133, 85, 214, 0.08) 60%, transparent 100%);
}

.glow-two {
  width: 580px;
  height: 650px;
  left: -200px;
  top: 900px;
  background: radial-gradient(circle, rgba(120, 75, 195, 0.18) 0%, rgba(65, 40, 115, 0.06) 65%, transparent 100%);
}

/* ==========================================================================
   Header & Navigation (Apple Frosted Glass)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-normal) var(--ease-apple), border-color var(--duration-normal) var(--ease-apple);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--duration-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand > span:last-child > span {
  color: var(--lime);
  font-weight: 500;
  margin-left: 1px;
}

.brand-mark {
  display: flex;
  width: 22px;
  height: 20px;
  gap: 2.5px;
  align-items: flex-end;
}

.brand-mark i {
  display: block;
  width: 5.5px;
  border-radius: 4px;
  background: var(--accent-gradient);
  transform: skewY(-20deg);
  box-shadow: 0 0 10px rgba(217, 194, 255, 0.35);
  transition: transform var(--duration-fast) var(--ease-apple);
}

.brand:hover .brand-mark i:nth-child(2) {
  transform: skewY(-20deg) translateY(-2px);
}

.brand-mark i:nth-child(1) { height: 10px; opacity: 0.75; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 14px; opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-links a,
.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) ease;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-trigger {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.login-trigger:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  padding: 8px 16px;
  font-size: 13px;
  gap: 8px;
}

.nav-cta b {
  font-size: 13px;
}

.nav-download {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 980px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-apple);
}

.nav-download span {
  color: var(--lime);
  font-size: 13px;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-apple);
}

.nav-download:hover {
  border-color: var(--border-accent);
  background: rgba(217, 194, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.nav-download:hover span {
  transform: translate(1px, -1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 90px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a977ff;
  box-shadow: 0 0 10px #ba8eff;
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

h1, h2, h3, p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.038em;
  margin: 0 0 24px;
  color: #ffffff;
  font-weight: 700;
}

/* Apple Intelligence gradient italic highlight */
.hero h1 em,
h2 em,
.login-panel h2 em,
.statement p em {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.05em;
  filter: drop-shadow(0 0 25px rgba(196, 153, 255, 0.35));
  letter-spacing: -0.03em;
}

.hero-text {
  font-size: 17px;
  line-height: 1.68;
  max-width: 480px;
  color: var(--text-secondary);
  margin-bottom: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Apple-Style Buttons */
.button {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 980px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-apple);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--accent-btn);
  color: #120e1a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 28px -6px rgba(186, 142, 255, 0.45);
}

.button-primary:hover {
  background: linear-gradient(180deg, #ede1ff 0%, #d4b5ff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 34px -4px rgba(186, 142, 255, 0.6);
}

.button-primary b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-ghost b {
  color: var(--lime);
  font-size: 14px;
  transition: transform var(--duration-fast) var(--ease-apple);
}

.button-ghost:hover b {
  transform: translateX(3px);
}

.platforms {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platforms span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  color: var(--text-secondary);
}

/* ==========================================================================
   macOS IDE Window Preview
   ========================================================================== */

.editor-wrap {
  position: relative;
  margin-top: 10px;
}

.editor-shadow {
  position: absolute;
  inset: 12% 6% -10%;
  background: radial-gradient(circle, rgba(183, 151, 239, 0.25) 0%, rgba(130, 85, 214, 0.08) 60%, transparent 100%);
  filter: blur(60px);
  transform: perspective(900px) rotateX(8deg);
  pointer-events: none;
}

.editor {
  position: relative;
  background: #0f0f14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-apple), box-shadow 0.6s var(--ease-apple);
}

.editor-wrap:hover .editor {
  transform: perspective(1600px) rotateY(-1deg) rotateX(0deg);
  box-shadow: 0 45px 110px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(206, 175, 255, 0.2) inset;
}

.editor-topbar {
  height: 42px;
  background: rgba(20, 20, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  user-select: none;
}

/* Real macOS Traffic Lights */
.traffic {
  display: flex;
  gap: 8px;
}

.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.traffic i:nth-child(1) { background: #ff5f57; border: 1px solid rgba(224, 68, 62, 0.8); }
.traffic i:nth-child(2) { background: #febc2e; border: 1px solid rgba(222, 161, 35, 0.8); }
.traffic i:nth-child(3) { background: #28c840; border: 1px solid rgba(40, 170, 57, 0.8); }

.project-name {
  margin: auto;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-name span {
  color: var(--text-muted);
  font-size: 9px;
}

.topbar-actions {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
}

.editor-body {
  height: 440px;
  display: flex;
}

.activity {
  width: 44px;
  background: #0d0d12;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 14px;
  gap: 20px;
  color: var(--text-tertiary);
  font-size: 16px;
  user-select: none;
}

.activity span {
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

.activity span:hover {
  color: var(--text);
}

.activity .active {
  color: #ffffff;
  position: relative;
}

.activity .active::before {
  content: "";
  position: absolute;
  width: 2.5px;
  height: 22px;
  left: -15px;
  top: -2px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent);
}

.activity-bottom {
  margin-top: auto;
  margin-bottom: 14px;
}

.files {
  width: 152px;
  background: #111116;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-secondary);
  user-select: none;
}

.files-title {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding: 0 4px;
  font-weight: 600;
}

.files-title b {
  float: right;
  cursor: pointer;
}

.folder {
  padding: 4px 6px;
  color: #d1d1d6;
  font-weight: 500;
  border-radius: 4px;
}

.file {
  padding: 5px 8px;
  margin: 2px 0;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  display: flex;
  align-items: center;
}

.file:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.file i {
  font-style: normal;
  color: #e5c07b;
  margin-right: 7px;
  font-size: 11px;
}

.active-file {
  background: rgba(206, 175, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(206, 175, 255, 0.2);
}

.active-file i {
  color: #61afef;
}

.later {
  margin-top: 8px;
}

.code-area {
  flex: 1;
  background: #0f0f14;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tabs {
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  background: #0c0c10;
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 10.5px;
  user-select: none;
}

.tab {
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-fast) ease;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.selected {
  color: #ffffff;
  background: #0f0f14;
  border-top: 2px solid var(--accent);
  padding-top: 8px;
}

.tab span {
  color: #61afef;
}

.tab b {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 14px;
  border-radius: 4px;
  padding: 1px 4px;
  transition: background var(--duration-fast);
}

.tab b:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 10px;
  height: 28px;
  padding: 6px 18px;
  color: var(--text-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
}

.breadcrumb span {
  color: var(--text-muted);
  margin: 0 6px;
}

.code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  padding: 12px 18px 120px;
  margin: 0;
  color: #d8dee9;
  white-space: pre;
  tab-size: 2;
  overflow: hidden;
}

.line-num {
  color: #4b5263;
  display: inline-block;
  width: 26px;
  text-align: right;
  margin-right: 20px;
  user-select: none;
}

/* Syntax Highlighting */
.pink { color: #f470b7; }
.yellow { color: #e5c07b; }
.blue { color: #61afef; }
.purple { color: #c678dd; }
.green { color: #98c379; }
.bracket { color: #abb2bf; }

/* Lumen AI Agent Copilot Card */
.agent-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  border: 1px solid rgba(206, 175, 255, 0.28);
  border-radius: 10px;
  background: rgba(22, 20, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(186, 142, 255, 0.12);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  transition: border-color var(--duration-fast);
}

.agent-panel:hover {
  border-color: rgba(206, 175, 255, 0.45);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d9c2ff 35%, #7e57c2 85%);
  box-shadow: 0 0 12px #d9c2ff;
  animation: orb-glow 3s infinite ease-in-out;
}

@keyframes orb-glow {
  0%, 100% { box-shadow: 0 0 10px #d9c2ff; transform: scale(1); }
  50% { box-shadow: 0 0 18px #d9c2ff, 0 0 25px rgba(126, 87, 194, 0.5); transform: scale(1.08); }
}

.agent-head strong {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.agent-head span {
  color: var(--text-tertiary);
  font-size: 9.5px;
}

.agent-panel p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: #e2e2e7;
  margin: 7px 0 10px;
}

.suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.suggestions button {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 5px 9px;
  color: #c9c9d4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.suggestions button:hover {
  background: rgba(206, 175, 255, 0.16);
  border-color: rgba(206, 175, 255, 0.4);
  color: #ffffff;
}

.agent-input {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 9px;
  padding-top: 9px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-input kbd {
  font-family: var(--mono);
  color: #d1d1d8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9.5px;
}

.statusbar {
  height: 24px;
  background: #09090d;
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 10px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.statusbar span:first-child {
  color: var(--accent);
}

.status-right {
  margin-left: auto;
}

/* Floating Tooltip */
.cursor-float {
  position: absolute;
  right: -12px;
  bottom: 24px;
  background: rgba(26, 24, 32, 0.9);
  border: 1px solid rgba(206, 175, 255, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(186, 142, 255, 0.2);
  backdrop-filter: blur(16px);
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor-float span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lime);
}

.cursor-float b {
  font-weight: 500;
}

.cursor-float kbd {
  font-family: var(--mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Trusted By Logos (Minimalist & Crisp)
   ========================================================================== */

.trusted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.trusted p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin: 0;
  text-transform: uppercase;
  font-weight: 500;
}

.trusted div {
  display: flex;
  align-items: center;
  gap: 46px;
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.trusted div span {
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
  cursor: default;
}

.trusted div span:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.trusted div span:nth-child(2) { font-weight: 500; letter-spacing: -0.01em; }
.trusted div span:nth-child(3) { font-size: 17px; font-weight: 600; }
.trusted div span:nth-child(4) { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.trusted div span:nth-child(5) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; }

/* ==========================================================================
   Features Section (Apple Grid)
   ========================================================================== */

.feature-section {
  padding: 140px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: 80px 1fr 300px;
  align-items: start;
  margin-bottom: 56px;
}

.section-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  padding-top: 8px;
}

.section-intro h2,
.pricing-intro h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 700;
}

.section-intro p,
.pricing-intro p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 8px 0 0;
  font-weight: 400;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 18px;
}

.feature-card {
  background: var(--surface-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color var(--duration-normal) var(--ease-apple), transform var(--duration-normal) var(--ease-apple), box-shadow var(--duration-normal) var(--ease-apple);
}

.feature-card:hover {
  border-color: rgba(206, 175, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(186, 142, 255, 0.08);
}

.feature-card::after,
.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(206, 175, 255, 0.09), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.feature-card:hover::after,
.price-card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 500;
}

.card-icon {
  color: var(--lime);
  font-size: 18px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #ffffff;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Graphic inside large card */
.context-graphic {
  position: relative;
  height: 220px;
  margin: 10px 0 20px;
}

.node {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 28, 36, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  padding: 6px 10px;
  color: #dedee3;
  font-family: var(--mono);
  font-size: 10px;
  z-index: 2;
  transition: all var(--duration-fast) ease;
}

.node:hover {
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

.node-main {
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  border-color: rgba(196, 153, 255, 0.5);
  background: rgba(36, 28, 52, 0.9);
  color: #eedeff;
  box-shadow: 0 0 24px rgba(206, 175, 255, 0.25);
}

.node-a { left: 8px; top: 16px; }
.node-b { right: 8px; top: 26px; }
.node-c { left: 24px; bottom: 14px; }

.line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(206, 175, 255, 0.35), transparent);
  transform-origin: left;
  left: 50%;
  top: 88px;
  width: 130px;
}

.line-a { transform: rotate(-145deg); }
.line-b { transform: rotate(-28deg); background: linear-gradient(90deg, #9f75dd, transparent); }
.line-c { transform: rotate(132deg); width: 120px; }

.pulse {
  position: absolute;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(217, 194, 255, 0.35);
  border-radius: 50%;
  left: calc(50% - 43px);
  top: 48px;
  animation: pulse-ring 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Diff Block */
.diff {
  margin: auto 0 24px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2.2;
  overflow: hidden;
}

.diff div {
  padding: 0 12px;
}

.diff div:nth-child(1) {
  background: rgba(244, 112, 183, 0.12);
  color: #f79bc3;
}

.diff div:nth-child(2),
.diff div:nth-child(3) {
  background: rgba(152, 195, 121, 0.12);
  color: #b1d898;
}

.minus { color: #f470b7; display: inline-block; width: 16px; font-weight: 700; }
.plus { color: #98c379; display: inline-block; width: 16px; font-weight: 700; }

/* Spotlight Command Bar */
.command {
  margin: auto 0 38px;
  background: rgba(24, 23, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
}

.command > span:first-child {
  color: var(--lime);
  margin-right: 10px;
  font-size: 13px;
}

.cmd-text {
  color: var(--text);
  font-weight: 400;
}

.command kbd {
  margin-left: auto;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
}

/* ==========================================================================
   Statement / Manifesto Section
   ========================================================================== */

.statement {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #09090c;
  overflow: hidden;
}

.statement-light {
  position: absolute;
  width: 750px;
  height: 420px;
  right: 12%;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 175, 255, 0.16) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.statement .container {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
}

.statement p {
  font-size: clamp(38px, 4.8vw, 70px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin: 0;
  color: #ffffff;
}

.statement p span {
  color: var(--text-tertiary);
}

.circle-link {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent-btn);
  color: #120e1a;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 15px 40px -10px rgba(186, 142, 255, 0.5);
  transition: transform var(--duration-fast) var(--ease-bounce), box-shadow var(--duration-fast);
}

.circle-link:hover {
  transform: rotate(8deg) scale(1.08);
  box-shadow: 0 20px 50px -8px rgba(186, 142, 255, 0.7);
}

.circle-link b {
  font-size: 20px;
  margin-top: 2px;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
  padding: 140px 0;
}

.pricing-intro {
  display: grid;
  grid-template-columns: 80px 1fr 300px;
  margin-bottom: 56px;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--border);
  background: var(--surface-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-normal) var(--ease-apple);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.price-card.featured {
  background: linear-gradient(160deg, rgba(34, 25, 46, 0.7) 0%, rgba(18, 16, 24, 0.8) 100%);
  border: 1px solid rgba(206, 175, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(186, 142, 255, 0.15);
}

.price-card.featured:hover {
  border-color: rgba(206, 175, 255, 0.7);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(186, 142, 255, 0.25);
}

.popular {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #eedeff;
  background: rgba(186, 142, 255, 0.2);
  border: 1px solid rgba(206, 175, 255, 0.4);
  padding: 4px 10px;
  border-radius: 980px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price {
  font-size: 44px;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 16px 0 6px;
  color: #ffffff;
}

.price small {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-tertiary);
  font-weight: 400;
}

.plan-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.price-card ul {
  padding: 0;
  margin: 32px 0 36px;
  list-style: none;
  font-size: 13.5px;
  line-height: 2.3;
  color: #dedee3;
}

.price-card li {
  display: flex;
  align-items: center;
}

.price-card li::before {
  content: "✓";
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
}

.price-button {
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 13px 18px;
  margin-top: auto;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--duration-fast) var(--ease-apple);
}

.price-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.price-button b {
  color: var(--lime);
  transition: transform var(--duration-fast);
}

.price-button:hover b {
  transform: translateX(3px);
}

.price-button.bright {
  background: var(--accent-btn);
  border-color: rgba(255, 255, 255, 0.4);
  color: #120e1a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -5px rgba(186, 142, 255, 0.4);
}

.price-button.bright:hover {
  background: linear-gradient(180deg, #ede1ff 0%, #d4b5ff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 30px -4px rgba(186, 142, 255, 0.55);
}

.price-button.bright b {
  color: #120e1a;
}

/* ==========================================================================
   Call To Action (CTA)
   ========================================================================== */

.cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 95px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta h2 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 18px 0 0;
  font-weight: 700;
}

.large-button {
  padding: 16px 28px;
  font-size: 14.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin: 0;
}

.footer > div {
  display: flex;
  gap: 28px;
}

.footer a {
  font-size: 12.5px;
}

/* ==========================================================================
   Apple-Style Modal Sheet (Login)
   ========================================================================== */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-apple), visibility 0.3s;
}

.login-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 6, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.login-panel {
  position: relative;
  width: min(440px, calc(100% - 32px));
  padding: 38px;
  border: 1px solid rgba(206, 175, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(150deg, #1b1822 0%, #100f14 100%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(186, 142, 255, 0.12);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-apple);
}

.login-modal.is-open .login-panel {
  transform: translateY(0) scale(1);
}

.login-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.login-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.auth-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-segment {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-apple);
}

.auth-segment:hover {
  color: var(--text);
}

.auth-segment.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.auth-view {
  animation: fadeIn 0.25s var(--ease-apple);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 8px;
  font-weight: 600;
}

.login-panel h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 700;
}

.login-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 26px;
}

.login-form > label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: #bbb7c3;
  margin-bottom: 16px;
  font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #ffffff;
  background: rgba(14, 13, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  outline: none;
  transition: all var(--duration-fast) var(--ease-apple);
}

.login-form select[name="plan"],
.login-form select[name="plan_name"],
.login-form [data-subscription-plan],
.login-form .subscription-plan {
  display: none !important;
}

.login-form input:focus {
  border-color: rgba(206, 175, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(186, 142, 255, 0.25);
  background: rgba(20, 18, 26, 0.95);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px !important;
}

.password-field button {
  position: absolute;
  right: 10px;
  bottom: 8px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  font-size: 13px;
  transition: color var(--duration-fast);
}

.password-field button:hover {
  color: #fff;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 6px 0 24px;
  color: var(--text-secondary);
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember input {
  accent-color: var(--accent);
  cursor: pointer;
}

.login-options a,
.login-footer a {
  color: var(--lime);
  text-decoration: none;
  transition: opacity var(--duration-fast);
}

.login-options a:hover,
.login-footer a:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.login-status {
  font-size: 12px;
  color: var(--lime);
  text-align: center;
  min-height: 18px;
  margin: 14px 0 0;
}

.login-footer {
  border-top: 1px solid var(--border);
  margin: 24px 0 0;
  padding-top: 20px;
  color: var(--text-tertiary);
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .nav-links {
    margin-left: 20px;
    margin-right: 20px;
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .editor-wrap {
    max-width: 680px;
  }

  .section-intro,
  .pricing-intro {
    grid-template-columns: 60px 1fr;
  }

  .section-intro p,
  .pricing-intro p {
    grid-column: 2;
    margin-top: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .large-card {
    grid-column: span 2;
  }

  .price-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .price-card {
    min-height: auto;
  }

  .trusted {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 30px 0;
  }

  .trusted div {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .nav {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

  .editor-body {
    height: 340px;
  }

  .files {
    display: none;
  }

  .code {
    font-size: 10px;
    padding-left: 8px;
  }

  .line-num {
    width: 20px;
    margin-right: 10px;
  }

  .status-right,
  .tabs .tab:nth-child(2) {
    display: none;
  }

  .feature-section,
  .pricing {
    padding: 80px 0;
  }

  .section-intro,
  .pricing-intro {
    display: block;
    margin-bottom: 36px;
  }

  .section-number {
    display: block;
    margin-bottom: 12px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .large-card {
    grid-column: auto;
  }

  .statement .container {
    min-height: 280px;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .circle-link {
    width: 95px;
    height: 95px;
    font-size: 11px;
  }

  .circle-link b {
    font-size: 16px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .editor {
    transform: none;
  }

  .editor-wrap:hover .editor {
    transform: none;
  }

  .login-panel {
    padding: 28px 20px;
  }
}
