/* =========================================
   TradieSMS — Commercial Website Stylesheet
   ========================================= */

/* --- Custom Properties --- */
:root {
  --orange:        #FF6B00;
  --orange-hover:  #E55A00;
  --orange-light:  #FFF3E0;
  --orange-mid:    #FF9500;
  --navy:          #0F2440;
  --navy-mid:      #1E3A5F;
  --navy-light:    #2D527A;
  --green:         #00C897;
  --white:         #FFFFFF;
  --gray-50:       #F8F9FA;
  --gray-100:      #F1F3F5;
  --gray-200:      #E9ECEF;
  --gray-300:      #DEE2E6;
  --gray-400:      #CED4DA;
  --gray-500:      #6C757D;
  --gray-600:      #495057;
  --gray-700:      #343A40;
  --gray-900:      #212529;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.15);

  --transition: 0.22s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

strong { font-weight: 700; }

/* --- Layout --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-gray  { background: var(--gray-50); }
.section-dark  { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,107,0,0.28);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

.btn-white {
  background: white;
  color: var(--orange);
  border-color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.w-full { width: 100%; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.nav-logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  color: var(--gray-700);
  transition: all var(--transition);
}

.nav-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px 24px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--orange); }
.mobile-menu a:last-child { border-bottom: none; margin-top: 12px; }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #081829 0%, #0F2440 40%, #1a2f4e 70%, #162840 100%);
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%; right: -15%;
  width: 65%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255,107,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 100px;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,107,0,0.14);
  border: 1px solid rgba(255,107,0,0.28);
  color: #FFAA60;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--orange), #FFB347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 290px;
  background: #10101e;
  border-radius: 44px;
  padding: 14px 14px 24px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.09),
    0 40px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(255,107,0,0.05);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #07070f;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: #f2f2f2;
  border-radius: 30px;
  overflow: hidden;
}

.sms-header {
  background: white;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ececec;
}

.sms-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF9500);
  color: white;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sms-header-info .sms-name {
  font-weight: 700;
  font-size: 13px;
  color: #111;
}

.sms-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}

.sms-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sms-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  animation: fadeSlide 0.5s ease forwards;
}

.sms-msg.incoming {
  background: white;
  color: #1a1a1a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.sms-msg.outgoing {
  background: var(--orange);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-1 { animation-delay: 0.3s; }
.msg-2 { animation-delay: 1.0s; }
.msg-3 { animation-delay: 1.8s; }
.msg-4 { animation-delay: 2.6s; }

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

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: var(--radius-md);
  padding: 11px 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 3;
  animation: floatBob 3s ease-in-out infinite;
}

.float-left  { left: -90px; top: 28%; }
.float-right { right: -80px; bottom: 26%; animation-delay: 1.5s; }

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

.float-badge-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-badge-icon.green  { background: var(--green); }
.float-badge-icon.orange { background: var(--orange); }

.float-badge-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.float-badge-sub {
  font-size: 11px;
  color: var(--gray-500);
}

/* Hero wave */
.hero-wave {
  flex-shrink: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-500);
}

.trust-divider {
  width: 4px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 50%;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.diagram-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 8px;
}

.flow-svg {
  width: 100%;
  min-width: 580px;
  max-width: 960px;
  display: block;
  margin: 0 auto;
}

/* Architecture section */
.arch-section {
  margin-top: 64px;
}

.arch-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
}

.arch-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.arch-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  max-width: 210px;
  flex: 1;
  min-width: 160px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.arch-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.arch-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.arch-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.55;
}

.arch-arrow {
  font-size: 24px;
  color: var(--orange);
  padding: 0 6px;
  flex-shrink: 0;
  font-weight: 700;
  margin-bottom: 36px;
}

/* =========================================
   FEATURES
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255,107,0,0.09);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* =========================================
   LIVE DEMO
   ========================================= */
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.demo-chat {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.demo-chat-header {
  background: var(--navy);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-chat-avatar {
  width: 42px; height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-chat-name {
  color: white;
  font-weight: 700;
  font-size: 14.5px;
}

.demo-chat-sub {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  margin-top: 2px;
}

.demo-chat-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-time {
  text-align: center;
  font-size: 11.5px;
  color: var(--gray-400);
  font-weight: 500;
}

.demo-row {
  display: flex;
}

.demo-row.ai { justify-content: flex-end; }

.demo-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.demo-bubble.customer {
  background: var(--gray-100);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
}

.demo-bubble.ai {
  background: var(--orange);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Email preview */
.email-preview {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
}

.email-preview-header {
  background: rgba(0,200,151,0.15);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.email-preview-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-preview-subject {
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin-bottom: 6px;
}

.email-preview-detail {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.priority-tag {
  background: rgba(239,68,68,0.2);
  color: #FF8585;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* Demo content */
.demo-content h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.18;
}

.demo-content p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Checklist */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================================
   INDUSTRIES
   ========================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
}

.industry-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.industry-card:hover {
  background: rgba(255,107,0,0.12);
  border-color: rgba(255,107,0,0.35);
  transform: translateY(-4px);
}

.industry-emoji {
  font-size: 38px;
  margin-bottom: 14px;
  display: block;
}

.industry-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-popular {
  border-color: var(--orange);
  box-shadow: 0 20px 60px rgba(255,107,0,0.14);
  transform: scale(1.03);
}

.popular-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 5px 22px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.pricing-tier {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 10px;
}

.pricing-curr {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-500);
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-num {
  font-size: 54px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.pricing-per {
  font-size: 15px;
  color: var(--gray-500);
}

.pricing-tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 22px;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 22px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
}

.pricing-list .incl::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  width: 16px;
}

.pricing-list .excl {
  color: var(--gray-400);
}

.pricing-list .excl::before {
  content: '✗';
  color: var(--gray-300);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  width: 16px;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-500);
}

/* =========================================
   FAQ
   ========================================= */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  gap: 16px;
  transition: color var(--transition);
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 26px;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-q:hover { color: var(--orange); }

.faq-a {
  padding: 0 4px 24px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, #E55A00 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta-section h2 {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  color: white;
  margin-bottom: 18px;
  line-height: 1.1;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 44px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.5);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-powered {
  color: rgba(255,255,255,0.35);
}

.footer-powered strong {
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.features-grid .reveal:nth-child(1)  { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(2)  { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(3)  { transition-delay: 0.19s; }
.features-grid .reveal:nth-child(4)  { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(5)  { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(6)  { transition-delay: 0.19s; }

.industry-grid .reveal:nth-child(1)  { transition-delay: 0.03s; }
.industry-grid .reveal:nth-child(2)  { transition-delay: 0.08s; }
.industry-grid .reveal:nth-child(3)  { transition-delay: 0.13s; }
.industry-grid .reveal:nth-child(4)  { transition-delay: 0.18s; }
.industry-grid .reveal:nth-child(5)  { transition-delay: 0.23s; }
.industry-grid .reveal:nth-child(6)  { transition-delay: 0.28s; }
.industry-grid .reveal:nth-child(7)  { transition-delay: 0.33s; }
.industry-grid .reveal:nth-child(8)  { transition-delay: 0.38s; }

.pricing-grid .reveal:nth-child(1)   { transition-delay: 0.05s; }
.pricing-grid .reveal:nth-child(2)   { transition-delay: 0.14s; }
.pricing-grid .reveal:nth-child(3)   { transition-delay: 0.23s; }

/* =========================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero h1 { font-size: clamp(34px, 6vw, 52px); }

  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }

  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .industry-grid { grid-template-columns: repeat(3, 1fr); }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-popular { transform: none; }

  .demo-inner { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .arch-grid { gap: 8px; }

  .float-left, .float-right { display: none; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================= */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .section-header { margin-bottom: 44px; }

  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 48px 0 64px; }

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

  .industry-grid { grid-template-columns: repeat(2, 1fr); }

  .arch-grid { flex-direction: column; align-items: center; }
  .arch-arrow { transform: rotate(90deg); margin: 0; padding: 4px 0; }
  .arch-card { max-width: 280px; width: 100%; }

  .trust-divider { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  .cta-section { padding: 72px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 26px; }

  .flow-svg { min-width: 480px; }
}

/* =========================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }

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

  .hero-stat-divider { display: none; }

  .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
}

/* =========================================
   ACCESSIBILITY & PRINT
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; }
  .float-badge { animation: none; }
}

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

@media print {
  .nav, .hero-visual, .float-badge, .cta-section { display: none; }
  body { font-size: 12pt; }
}
