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

:root {
  --bg:      #07080d;
  --bg2:     #0d0f18;
  --surface: #111420;
  --border:  #1e2235;
  --border2: #2e3450;
  --gold:    #f0b429;
  --text:    #dde2f0;
  --muted:   #7a8299;
  --muted2:  #aab2cc;
  --red:     #f05252;
  --green:   #34d399;
}
[data-theme="light"] {
  --bg:      #f7f8fc;
  --bg2:     #eef0f6;
  --surface: #ffffff;
  --border:  #dde1ee;
  --border2: #c8cedd;
  --gold:    #e8920a;
  --text:    #0f1623;
  --muted:   #606880;
  --muted2:  #3d4560;
  --red:     #c93030;
  --green:   #1a7a4a;
}
[data-theme="light"] body::before { opacity: 0.008; }
[data-theme="light"] nav {
  background: rgba(247,248,252,0.95);
  border-color: var(--border);
}
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #f7f8fc 60%, #eef1fa 100%);
}
[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(80,100,180,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,100,180,0.05) 1px, transparent 1px);
}
[data-theme="light"] .hero h1 .line-gold { color: var(--gold); }
[data-theme="light"] .hero h1 .line-outline {
  -webkit-text-stroke: 2px rgba(15,22,35,0.7);
  color: transparent;
}
[data-theme="light"] .nav-cta { background: var(--gold); color: #fff; }
[data-theme="light"] .nav-cta:hover { background: #d4820a; }
[data-theme="light"] .btn-primary { background: var(--gold); color: #fff; }
[data-theme="light"] .btn-primary:hover { background: #d4820a; }
[data-theme="light"] .section--alt { background: var(--bg2); border-color: var(--border); }
[data-theme="light"] .service-card { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="light"] .service-card:hover { background: #f0f3fa; }
[data-theme="light"] .tool-card { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
[data-theme="light"] .tool-card-head { border-color: var(--border); }
[data-theme="light"] .drop-zone { background: var(--bg); border-color: var(--border2); }
[data-theme="light"] .drop-zone:hover, [data-theme="light"] .drop-zone.drag-over { border-color: var(--gold); background: rgba(232,146,10,0.04); }
[data-theme="light"] .output-area { background: var(--bg); border-color: var(--border); }
[data-theme="light"] .aeo-promo { background: var(--surface); border-color: rgba(232,146,10,0.3); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
[data-theme="light"] .aeo-chips span { background: rgba(232,146,10,0.1); border-color: rgba(232,146,10,0.25); color: #9a5c00; }
[data-theme="light"] .about-list li { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea { background: var(--surface) !important; border-color: var(--border2) !important; color: var(--text) !important; }
[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder { color: var(--muted) !important; }
[data-theme="light"] .tool-prompt input { background: var(--bg) !important; border-color: var(--border2) !important; color: var(--text) !important; }
[data-theme="light"] .tool-prompt input::placeholder { color: var(--muted) !important; }
[data-theme="light"] .tool-run-btn { background: var(--gold); color: #fff; }
[data-theme="light"] .tool-run-btn:hover { background: #d4820a; }
[data-theme="light"] .marquee-strip { background: rgba(232,146,10,0.06); border-color: rgba(232,146,10,0.18); }
[data-theme="light"] .mobile-nav { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mobile-nav a { color: var(--muted2); border-color: var(--border); }
[data-theme="light"] .footer-inner { border-color: var(--border); }
[data-theme="light"] .hero-stats { border-color: var(--border); }
[data-theme="light"] .services-grid { background: var(--border); border-color: var(--border); }

html { scroll-behavior: smooth; }
#services, #ai-tools, #about, #agency { scroll-margin-top: 72px; }

body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s; }
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025; pointer-events: none; z-index: 1000;
}
::selection { background: var(--gold); color: #07080d; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(7,8,13,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 3px; color: var(--gold); text-decoration: none; display: flex; align-items: center; }
.nav-logo span { color: var(--muted2); font-size: 13px; letter-spacing: 1px; margin-left: 8px; font-family: 'DM Mono', monospace; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { color: var(--muted2); font-size: 13px; text-decoration: none; font-weight: 500; padding: 8px 13px; border-radius: 5px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle { background: var(--surface); border: 1px solid var(--border2); color: var(--muted2); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: border-color 0.2s, transform 0.15s; }
.theme-toggle:hover { border-color: var(--gold); transform: rotate(15deg); }
.nav-cta { background: var(--gold); color: #07080d; padding: 9px 20px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s, transform 0.1s; }
.nav-cta:hover { background: #ffc740; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--muted2); transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 24px 20px; z-index: 199; flex-direction: column; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--muted2); font-size: 15px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

/* HERO */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 120px 0 80px; position: relative; overflow: hidden; -webkit-font-smoothing: antialiased; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(240,180,41,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(240,180,41,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%); pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.2); border-radius: 20px; padding: 5px 14px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; width: fit-content; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(52px, 8vw, 104px); line-height: 0.95; letter-spacing: 1px; color: var(--text); margin-bottom: 8px; }
.hero h1 .line-gold { color: var(--gold); display: block; }
.hero h1 .line-outline { -webkit-text-stroke: 2px rgba(240,180,41,1.0); color: transparent; display: block; -webkit-font-smoothing: antialiased; }
.hero-sub { font-size: 18px; color: var(--muted2); max-width: 580px; margin: 24px 0 44px; line-height: 1.75; font-weight: 300; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-sub em { font-style: normal; color: var(--gold); }
.hero.labs-hero { border-bottom: 1px solid var(--border); }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: #07080d; padding: 14px 30px; border-radius: 5px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.btn-primary:hover { background: #ffc740; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(240,180,41,0.25); }
.btn-ghost { color: var(--muted2); border: 1px solid var(--border2); padding: 13px 26px; border-radius: 5px; font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--muted2); color: var(--text); }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat .n { font-family: 'DM Mono', monospace; font-size: 30px; font-weight: 500; color: var(--gold); display: block; }
.hero-stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* MARQUEE */
.marquee-strip { background: rgba(240,180,41,0.06); border-top: 1px solid rgba(240,180,41,0.1); border-bottom: 1px solid rgba(240,180,41,0.1); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-inner span { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); opacity: 0.7; padding: 0 28px; }
.marquee-inner .dot { color: rgba(240,180,41,0.3); padding: 0; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* SECTIONS */
.section { padding: 88px 0; }
.section--alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; display: block; flex: 1; max-width: 40px; height: 1px; background: var(--gold); opacity: 0.4; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0.5px; color: var(--text); margin-bottom: 16px; }
.section-body { font-size: 17px; color: var(--muted2); line-height: 1.8; font-weight: 300; }

/* SERVICES */
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.service-card { background: var(--surface); padding: 26px 22px; position: relative; overflow: hidden; transition: background 0.2s; }
.service-card:hover { background: var(--bg2); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity 0.2s; }
.service-card:hover::before { opacity: 1; }
.service-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--muted2); line-height: 1.55; }
.service-card .svc-icon { font-size: 18px; margin-bottom: 8px; display: block; }

/* AEO PROMO */
.aeo-promo { background: var(--surface); border: 1px solid rgba(240,180,41,0.25); border-radius: 12px; padding: 32px 36px; margin-top: 44px; position: relative; overflow: hidden; }
.aeo-promo::before { content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(240,180,41,0.07) 0%, transparent 70%); }
.new-tag { display: inline-block; background: var(--gold); color: #07080d; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; margin-bottom: 10px; }
.aeo-promo h3 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--text); margin-bottom: 8px; }
.aeo-promo h3 span { color: var(--gold); }
.aeo-promo p { font-size: 14px; color: var(--muted2); line-height: 1.7; margin-bottom: 16px; }
.aeo-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.aeo-chips span { font-size: 11px; font-family: 'DM Mono', monospace; background: rgba(240,180,41,0.08); border: 1px solid rgba(240,180,41,0.2); color: var(--gold); padding: 3px 9px; border-radius: 3px; }
.aeo-promo-footer { display: flex; align-items: center; gap: 14px; }
.aeo-promo-footer .price { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted2); }
.aeo-promo-footer .price strong { color: var(--text); font-size: 15px; }

/* AI TOOLS — 3 symmetric cards */
.ai-tools-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.ai-tools-header .right-copy { font-size: 15px; color: var(--muted2); max-width: 360px; line-height: 1.7; font-weight: 300; text-align: right; }

.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.tool-card:hover { border-color: rgba(240,180,41,0.3); }

.tool-card-head { padding: 18px 20px 16px; border-bottom: 1px solid var(--border); min-height: 210px; display: flex; flex-direction: column; }
.tool-icon { font-size: 22px; display: block; margin-bottom: 8px; }
.tool-card-head h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tool-card-head p { font-size: 12px; color: var(--muted2); line-height: 1.5; }

.tool-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.drop-zone { border: 1.5px dashed var(--border2); border-radius: 7px; padding: 14px 12px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--bg); position: relative; overflow: hidden; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--gold); background: rgba(240,180,41,0.03); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { font-size: 18px; display: block; margin-bottom: 3px; color: var(--muted); transition: color 0.2s; }
.drop-zone.has-file .dz-icon { color: var(--green); }
.dz-text { font-size: 11px; color: var(--muted2); line-height: 1.4; }
.dz-text strong { color: var(--gold); }
.dz-preview { font-size: 11px; color: var(--green); font-family: 'DM Mono', monospace; margin-top: 4px; display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-zone.has-file .dz-preview { display: block; }
.dz-img-preview { width: 100%; max-height: 52px; object-fit: cover; border-radius: 4px; margin-top: 6px; display: none; }

.tool-prompt { display: flex; gap: 7px; }
.tool-prompt input { flex: 1; background: var(--bg); border: 1px solid var(--border2); color: var(--text); padding: 8px 11px; border-radius: 5px; font-size: 12px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; min-width: 0; }
.tool-prompt input::placeholder { color: var(--muted); }
.tool-prompt input:focus { border-color: var(--gold); }
.tool-run-btn { background: var(--gold); color: #07080d; border: none; padding: 8px 13px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; flex-shrink: 0; }
.tool-run-btn:hover { background: #ffc740; }
.tool-run-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.content-textarea {
  width: 100%; background: var(--bg); border: 1.5px dashed var(--border2);
  color: var(--text); padding: 14px; border-radius: 7px;
  font-size: 12px; font-family: 'DM Sans', sans-serif; outline: none;
  resize: none; line-height: 1.7; height: 94px;
  transition: border-color 0.2s;
  /* Hide scrollbar cross-browser */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  overflow-y: auto;
}
.content-textarea::-webkit-scrollbar { display: none; } /* Chrome/Safari/Mobile */
.content-textarea::placeholder { color: var(--muted); line-height: 1.7; }
.content-textarea:focus { border-color: var(--gold); border-style: solid; }
[data-theme="light"] .content-textarea { background: var(--bg) !important; border-color: var(--border2) !important; color: var(--text) !important; } border-radius: 7px; padding: 11px 13px; min-height: 100px; max-height: 148px; overflow-y: auto; font-size: 12px; color: var(--muted2); line-height: 1.65; flex: 1; transition: opacity 0.2s; }
.output-area.loading { opacity: 0.5; }
.output-area .rich p { margin: 0 0 5px; font-size: 12px; color: var(--muted2); }
.output-area .rich p:last-child { margin-bottom: 0; }
.output-area .rich ul, .output-area .rich ol { padding-left: 15px; margin: 4px 0; }
.output-area .rich li { font-size: 12px; color: var(--muted2); margin-bottom: 2px; }
.output-area .rich strong { color: var(--text); }
.output-placeholder { color: var(--muted); font-size: 12px; font-style: italic; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.about-list li {
  padding: 14px 16px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--muted2);
  position: relative;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: default;
}
.about-list li:hover {
  background: var(--bg2);
  border-color: rgba(240,180,41,0.35);
  color: var(--text);
  transform: translateX(4px);
}
.about-list li::before {
  content: '✓';
  position: absolute; left: 16px;
  color: var(--gold); font-weight: 700;
  transition: transform 0.15s;
}
.about-list li:hover::before { transform: scale(1.2); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--border2); color: var(--text); padding: 12px 14px; border-radius: 6px; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 118px; }
.contact-status { font-size: 13px; color: var(--green); margin-top: 4px; }
.contact-status.err { color: var(--red); }
.contact-bullets { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-bullets li { font-size: 14px; color: var(--muted2); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.contact-bullets li::before { content: '→'; color: var(--gold); font-family: 'DM Mono', monospace; flex-shrink: 0; margin-top: 1px; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; color: var(--gold); }
.footer-logo span { color: var(--muted); font-size: 12px; font-family: 'DM Sans', sans-serif; letter-spacing: 0; margin-left: 6px; }
footer p { font-size: 12px; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .services-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .ai-tools-header { flex-direction: column; align-items: flex-start; }
  .ai-tools-header .right-copy { text-align: left; max-width: 100%; }
}
@media (max-width: 760px) { .tool-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-logo span { display: none; }
  .nav-right { gap: 6px; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stat .n { font-size: 24px; }
  .hero-stat .l { font-size: 11px; }
  .tool-cards { grid-template-columns: 1fr; }
  .aeo-promo { padding: 24px; }
  .section { padding: 64px 0; }
}