* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #ffffff;
  --dark: #2b2b2e;
  --dark-2: #333336;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --panel-3: #eeeeef;
  --line: #e0e0e4;
  --orange: #ff6b1a;
  --orange-bright: #ff8540;
  --orange-dim: #e85d10;
  --orange-glow: rgba(255, 107, 26, 0.12);
  --text: #1f1f1f;
  --text-dim: #5a5a60;
  --text-dimmer: #8a8a90;
  --green: #3d9140;
  --red: #c0392b;
  --blue: #2f6fb0;
}

html, body { color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
body {
  background: #ffffff;
  position: relative;
}
/* Orange accent line at very top */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  z-index: 200;
}
.navbar, section, footer, .auth-page, .legal-page, .hiw-page, .help-page, .contact-page, .scroll-btn, .mobile-menu, .mobile-menu-overlay { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(43, 43, 46, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 4px; color: var(--orange); }
.logo span { color: #fff; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a:not(.nav-btn-primary):not(.nav-btn-secondary) { font-size: 0.9rem; color: #c8c8cd; transition: color 0.15s; }
.nav-links a:hover { color: var(--orange); }
.nav-btn-secondary { padding: 0.55rem 1rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; font-size: 0.85rem; color: #fff !important; transition: all 0.15s; }
.nav-btn-secondary:hover { border-color: var(--orange); color: var(--orange) !important; }
.nav-btn-primary { padding: 0.55rem 1.1rem; background: var(--orange); color: #fff !important; border-radius: 8px; font-size: 0.85rem; font-weight: 700; transition: all 0.15s; }
.nav-btn-primary:hover { background: var(--orange-bright); transform: translateY(-1px); }

/* HAMBURGER */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; z-index: 201; }
.nav-signin-mobile { display: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; transition: all 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 SLIDE-IN MENU */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 150; opacity: 0; transition: opacity 0.25s; }
.mobile-menu-overlay.open { display: block; opacity: 1; }
.mobile-menu { position: fixed; top: 0; right: -300px; width: 280px; max-width: 80vw; height: 100%; background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%); border-left: 1px solid var(--orange-dim); z-index: 200; transition: right 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; padding: 5rem 1.5rem 2rem; box-shadow: -10px 0 40px rgba(0,0,0,0.5); }
.mobile-menu.open { right: 0; }
.mobile-menu a { display: block; padding: 0.9rem 0; color: #f5f5f7; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.15s; }
.mobile-menu a:hover { color: var(--orange); padding-left: 0.3rem; }
.mobile-menu a.menu-cta { margin-top: 1.2rem; background: var(--orange); color: #fff; text-align: center; border-radius: 10px; font-weight: 700; border: none; padding: 0.9rem; }
.mobile-menu a.menu-cta:hover { background: var(--orange-bright); padding-left: 0; }
.mobile-menu a.menu-cta-secondary { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); text-align: center; border-radius: 10px; margin-top: 0.6rem; color: #f5f5f7; font-weight: 600; }
.mobile-menu a.menu-cta-secondary:hover { border-color: var(--orange); color: var(--orange); padding-left: 0; }
.mobile-menu-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 2px; color: var(--orange); text-transform: uppercase; margin: 1.4rem 0 0.3rem; }

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 10px; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 2.5px;
  transition: all 0.15s; border: none; text-align: center; width: auto;
}
.btn-primary { background: var(--orange); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 107, 26, 0.25); }
.btn-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--orange); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; display: block; }

/* HERO */
.hero { padding: 4rem 0 5rem; text-align: center; background: linear-gradient(180deg, #2b2b2e 0%, #242427 100%); color: #fff; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 3px; color: var(--orange); text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--orange); opacity: 0.7; }
.hero h1 { text-shadow: none; }
.hero-tagline { text-shadow: none; }
.hero-sub { text-shadow: none; }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: 3px; line-height: 0.92; margin-bottom: 1.5rem; }
.hero h1 .orange { color: var(--orange); display: block; text-shadow: 0 0 40px rgba(255, 107, 26, 0.3); }
.hero-sub { max-width: 580px; margin: 0 auto 2rem; color: #c0c0c6; font-size: 1.05rem; line-height: 1.6; }
.hero-tagline { max-width: 580px; margin: 0 auto 1.2rem; font-size: 1.1rem; line-height: 1.5; color: #fff; }
.hero-tagline strong { color: var(--orange); font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 2px; display: block; margin-bottom: 0.3rem; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-meta { font-size: 0.85rem; color: var(--text-dimmer); font-family: 'DM Mono', monospace; letter-spacing: 1px; }

/* SECTION HEADINGS */
.section-heading { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: 3px; text-align: center; margin-bottom: 0.8rem; line-height: 1.1; }
.section-sub { text-align: center; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* FEATURES */
.features { padding: 4rem 0; background: #ffffff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.feature-card { background: #eeeef0; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feature-card:hover { border-color: var(--orange-dim); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 2px; color: var(--orange); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* INDUSTRIES */
.industries { padding: 4rem 0; background: #f1f1f4; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-top: 2rem; }
.industry-card { background: #eeeef0; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; transition: all 0.15s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.industry-card:hover { border-color: var(--orange); }
.industry-card .ind-icon { font-size: 1.5rem; }
.industry-card span:not(.ind-icon) { font-size: 0.9rem; color: var(--text); }

/* HOW IT WORKS */
.how-it-works { padding: 4rem 0; background: #ffffff; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.step { background: #eeeef0; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.step-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--orange); letter-spacing: 2px; margin-bottom: 0.3rem; }
.step h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }

/* PRICING */
.pricing { padding: 4rem 0; background: #f1f1f4; }
.pricing-toggle { display: flex; justify-content: center; gap: 0.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem; max-width: 460px; margin: 0 auto 2.5rem; flex-wrap: wrap; }
.toggle-btn { background: transparent; border: none; color: var(--text-dim); padding: 0.55rem 0.9rem; border-radius: 100px; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 0.4rem; }
.toggle-btn.active { background: var(--orange); color: #fff; font-weight: 700; }
.save-pill { background: rgba(95, 168, 95, 0.2); color: var(--green); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.6rem; font-weight: 700; }
.toggle-btn.active .save-pill { background: rgba(0,0,0,0.2); color: #000; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.price-card { background: #eeeef0; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; text-align: center; position: relative; transition: all 0.15s; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.price-card:hover { border-color: var(--orange-dim); }
.price-card.featured { border: 2px solid var(--orange); background: linear-gradient(180deg, #ffffff 0%, #fff6f0 100%); }
.popular-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 100px; font-weight: 700; }
.price-tier-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 3px; color: var(--orange); margin-bottom: 0.5rem; }
.price-amount { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1; margin-bottom: 0.3rem; }
.price-amount small { font-size: 0.9rem; color: var(--text-dim); font-family: 'Inter', sans-serif; font-weight: 400; margin-left: 0.2rem; }
.price-billed { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 1rem; }
.price-features { list-style: none; text-align: left; margin-bottom: 1.3rem; }
.price-features li { padding: 0.4rem 0; font-size: 0.85rem; color: var(--text); border-bottom: 1px solid var(--line); }
.price-features li:last-child { border-bottom: none; }
.price-card .btn-primary, .price-card .btn-secondary { width: 100%; }
.pricing-note { text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-top: 1.5rem; font-family: 'DM Mono', monospace; letter-spacing: 1px; }

/* DISCLAIMER */
.disclaimer-section { padding: 2rem 0; }
.disclaimer-box { background: rgba(255, 107, 26, 0.06); border: 1px solid var(--orange-dim); border-radius: 12px; padding: 1.2rem 1.5rem; text-align: center; font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; max-width: 800px; margin: 0 auto; }
.disclaimer-box strong { color: var(--orange); }

/* CTA */
.cta-section { padding: 4rem 0; text-align: center; background: linear-gradient(180deg, #2b2b2e 0%, #242427 100%); color: #fff; }
.cta-section h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: 3px; margin-bottom: 0.8rem; line-height: 1.1; }
.cta-section p { color: #c0c0c6; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* FOOTER */
.footer { background: #2a2a2a; border-top: 1px solid #1f1f1f; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 2px; color: var(--orange); text-transform: uppercase; margin-bottom: 0.8rem; }
.footer a { display: block; color: #b0b0b0; font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.15s; }
.footer a:hover { color: var(--orange); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid #444; text-align: center; color: #999; font-size: 0.8rem; font-family: 'DM Mono', monospace; letter-spacing: 1px; }

/* AUTH PAGES */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #f1f1f4; }
.auth-wrap { max-width: 440px; width: 100%; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo .logo { font-size: 1.8rem; }
.auth-logo .logo span { color: #1a1a1a; }
.auth-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 3px; margin-bottom: 0.3rem; color: var(--orange); }
.auth-sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.field input, .field textarea, .field select { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 0.75rem 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; border-radius: 8px; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.invite-code-input { text-transform: uppercase; letter-spacing: 6px !important; font-family: 'DM Mono', monospace !important; font-size: 1.2rem !important; text-align: center; font-weight: 700; }

.auth-footer-link { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-dim); }
.auth-footer-link a { color: var(--orange); }

/* CONFIG NOTICE */
.config-notice { background: rgba(255, 107, 26, 0.1); border: 1px solid var(--orange-dim); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
.config-notice strong { color: var(--orange); }

/* PREVIEW DEMO LINK */
.demo-link-box { background: var(--panel-2); border: 1px dashed var(--orange-dim); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.demo-link-box a { color: var(--orange); font-weight: 600; }
.demo-link-box strong { color: var(--orange); }

/* MOBILE */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-signin-mobile { display: inline-block; margin-left: auto; margin-right: 0.6rem; padding: 0.45rem 0.9rem; border: 1px solid var(--orange); color: var(--orange); border-radius: 8px; font-size: 0.8rem; font-weight: 700; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { width: 100%; }
  .features, .how-it-works, .pricing, .cta-section, .industries { padding: 3rem 0; }
  .field-grid { grid-template-columns: 1fr; }
}

/* SCROLL UP/DOWN BUTTON */
.scroll-btn {
  position: fixed; right: 1.2rem; bottom: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s;
}
.scroll-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-btn:hover { background: var(--orange-bright); transform: translateY(-2px); }
.scroll-btn svg { width: 22px; height: 22px; transition: transform 0.3s; }
.scroll-btn.flip svg { transform: rotate(180deg); }
