﻿/* ============================================
   DataWise AI - Main Stylesheet (Alternating Layout)
   ============================================ */

/* LIGHT THEME */
:root {
  --primary: #CA9A04; --primary-light: #E8C040; --primary-pale: #FFFBEA;
  --text-dark: #1A1A2E; --text-mid: #4A5568; --text-light: #718096;
  --bg: #FDFCF5; --bg-warm: #FFFEF0; --bg-card: #FFFFFF;
  --border: #EDE9D0; --nav-bg: rgba(255,255,255,0.92);
  --shadow: 0 4px 24px rgba(202,154,4,0.10);
  --shadow-lg: 0 12px 48px rgba(26,26,46,0.12);
  --footer-bg: #1A1A2E;
}

/* DARK THEME */
[data-theme="dark"] {
  --primary: #F5A06A; --primary-light: #FBBF8A; --primary-pale: rgba(245,160,106,0.12);
  --text-dark: #F1F0EE; --text-mid: #A0AEC0; --text-light: #718096;
  --bg: #0F0F1A; --bg-warm: #141420; --bg-card: #1C1C2E;
  --border: #2D2D42; --nav-bg: rgba(15,15,26,0.92);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  --footer-bg: #0A0A14;
}

/* BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background 0.4s, color 0.4s; }

/* NAV */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s, background 0.4s, border-color 0.4s; }
nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: var(--text-dark); text-decoration: none; transition: color 0.4s; }
.logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 20px; height: 20px; stroke: white; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 22px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 8px rgba(202,154,4,0.3); }
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.3s; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--primary); transform: rotate(20deg); }

/* ── HERO ── */
.hero { padding: 120px 32px 0; background: linear-gradient(170deg, var(--bg-warm) 0%, var(--bg) 55%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(202,154,4,0.07) 0%, transparent 70%); pointer-events: none; }
.hero-center { max-width: 760px; margin: 0 auto; text-align: center; padding-bottom: 56px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-pale); color: var(--primary); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(202,154,4,0.2); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.12; color: var(--text-dark); margin-bottom: 20px; letter-spacing: -0.03em; transition: color 0.4s; }
.highlight { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 36px; line-height: 1.75; transition: color 0.4s; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.btn-primary { background: var(--primary); color: white; padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 16px rgba(202,154,4,0.35); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(202,154,4,0.45); }
.btn-secondary { background: var(--bg-card); color: var(--text-dark); padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.25s; border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-trust { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-light); justify-content: center; }
.trust-avatars { display: flex; }
.trust-avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: white; }
.trust-avatars span:not(:first-child) { margin-left: -8px; }

/* Hero image with floating card */
.hero-img-wrap { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-img-wrap img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
.hero-float-card { position: absolute; bottom: 24px; right: 32px; width: 380px; background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; transition: background 0.4s, border-color 0.4s; }
.db-header { background: linear-gradient(135deg, #1A1A2E, #2d3748); padding: 12px 16px; display: flex; align-items: center; gap: 6px; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; }
.db-dot.r{background:#FF5F57} .db-dot.y{background:#FEBC2E} .db-dot.g{background:#28C840}
.db-title { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-left: 8px; }
.db-body { padding: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.kpi { background: var(--bg-warm); border-radius: 8px; padding: 10px; border: 1px solid var(--border); transition: background 0.4s, border-color 0.4s; }
.kpi-label { font-size: 0.65rem; color: var(--text-light); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-val { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); transition: color 0.4s; }
.kpi-chg { font-size: 0.68rem; color: #38A169; font-weight: 600; }
.chart-wrap { background: var(--bg); border-radius: 8px; padding: 12px; border: 1px solid var(--border); transition: background 0.4s, border-color 0.4s; }
.chart-lbl { font-size: 0.72rem; color: var(--text-mid); font-weight: 600; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
.bar.muted { background: var(--border); }
.insight { margin-top: 12px; background: var(--primary-pale); border-radius: 7px; padding: 10px 12px; border-left: 3px solid var(--primary); display: flex; gap: 8px; align-items: flex-start; }
.insight-text { font-size: 0.74rem; color: var(--text-mid); line-height: 1.5; transition: color 0.4s; }
.insight-text strong { color: var(--primary); }

/* ── SECTIONS COMMON ── */
section { padding: 96px 32px; transition: background 0.4s; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-tag { display: inline-block; background: var(--primary-pale); color: var(--primary); padding: 4px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
h2 { font-size: 2.4rem; font-weight: 900; line-height: 1.15; color: var(--text-dark); margin-bottom: 14px; letter-spacing: -0.025em; transition: color 0.4s; }
.section-desc { font-size: 1rem; color: var(--text-mid); max-width: 540px; line-height: 1.7; transition: color 0.4s; }

/* ── ALTERNATING ROWS (pain) ── */
.pain { background: var(--bg-warm); }
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.alt-row:last-child { margin-bottom: 0; }
.alt-row.reverse { direction: rtl; }
.alt-row.reverse > * { direction: ltr; }
.alt-num { font-size: 4rem; font-weight: 900; color: var(--primary-pale); line-height: 1; margin-bottom: 12px; border: 2px solid var(--border); border-radius: 16px; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.alt-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; color: var(--text-dark); line-height: 1.3; transition: color 0.4s; }
.alt-text p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 20px; transition: color 0.4s; }
.alt-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-pale); color: var(--primary); padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.alt-img img { width: 100%; height: 320px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }

/* ── FEATURE ROWS (services) ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-cards { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); transition: all 0.3s; }
.feature-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateX(4px); }
.fi-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--text-dark); transition: color 0.4s; }
.feature-item p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; transition: color 0.4s; }
.feature-img img { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }

/* ── TIMELINE (how it works) ── */
.how { background: var(--bg-warm); }
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--primary-light)); transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 0; align-items: center; margin-bottom: 48px; }
.tl-row:last-child { margin-bottom: 0; }
.tl-text { background: var(--bg-card); border-radius: 16px; padding: 28px; border: 1px solid var(--border); transition: all 0.3s; }
.tl-text:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.tl-num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(202,154,4,0.3); }
.tl-text h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); transition: color 0.4s; }
.tl-text p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; transition: color 0.4s; }
.tl-line { display: flex; align-items: center; justify-content: center; }
.tl-line::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-pale); }
.tl-empty { }
.tl-row.reverse .tl-text { order: 3; }
.tl-row.reverse .tl-line { order: 2; }
.tl-row.reverse .tl-empty { order: 1; }

/* ── RESULTS alternating ── */
.results-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.results-stats { display: flex; flex-direction: column; gap: 28px; }
.stat-item { }
.stat-num { font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 6px; }
.stat-bar { height: 6px; background: var(--border); border-radius: 100px; margin-bottom: 8px; overflow: hidden; }
.stat-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 100px; transition: width 1s ease; }
.stat-item p { font-size: 0.88rem; color: var(--text-mid); transition: color 0.4s; }
.results-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }

/* ── TESTIMONIALS alternating ── */
.testimonials { background: var(--bg-warm); }
.testi-alt { display: flex; flex-direction: column; gap: 64px; }
.testi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.testi-row.reverse { direction: rtl; }
.testi-row.reverse > * { direction: ltr; }
.testi-img-wrap img { width: 100%; height: 320px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }
.testi-content { padding: 8px 0; }
.stars { color: #F6AD55; font-size: 1rem; margin-bottom: 20px; letter-spacing: 3px; }
.testi-content blockquote { font-size: 1.1rem; color: var(--text-dark); line-height: 1.75; margin-bottom: 28px; font-style: italic; position: relative; padding-left: 20px; transition: color 0.4s; }
.testi-content blockquote::before { content: '"'; position: absolute; left: 0; top: -4px; font-size: 2.5rem; color: var(--primary); line-height: 1; font-style: normal; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; color: white; flex-shrink: 0; }
.testi-name { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); transition: color 0.4s; }
.testi-role { font-size: 0.8rem; color: var(--text-light); }

/* ── CTA ── */
.cta { background: linear-gradient(135deg, #1A1A2E 0%, #2d3748 100%); padding: 96px 32px; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: url('../images/cta-bg.jpg') center/cover; opacity: 0.08; pointer-events: none; }
.cta-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta h2 { color: white; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.6); font-size: 1rem; }
.cta-btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.btn-cta { background: var(--primary); color: white; padding: 16px 36px; border-radius: 10px; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.25s; box-shadow: 0 4px 20px rgba(202,154,4,0.5); }
.btn-cta:hover { opacity: 0.88; transform: translateY(-2px); }
.cta-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── FOOTER ── */
footer { background: var(--footer-bg); padding: 40px 32px; border-top: 1px solid rgba(255,255,255,0.06); transition: background 0.4s; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo span { color: white; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .alt-row, .feature-row, .results-alt, .testi-row { grid-template-columns: 1fr; gap: 40px; }
  .alt-row.reverse, .feature-row.reverse, .testi-row.reverse { direction: ltr; }
  .hero-float-card { width: 300px; right: 16px; bottom: 16px; }
  .timeline::before { display: none; }
  .tl-row { grid-template-columns: 1fr; gap: 0; }
  .tl-line, .tl-empty { display: none; }
  .tl-row.reverse .tl-text { order: unset; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }
  section { padding: 64px 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 0; }
  .hero-img-wrap img { height: 260px; border-radius: 14px 14px 0 0; }
  .hero-float-card { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-btns { align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .results-img img, .alt-img img, .feature-img img, .testi-img-wrap img { height: 220px; }
}

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.contact-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); text-decoration: none; transition: color 0.2s; }
a.contact-value:hover { color: var(--primary); }

.contact-form-wrap { background: var(--bg-card); border-radius: 20px; padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); transition: background 0.4s, border-color 0.4s; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); }
.form-group input, .form-group textarea {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text-dark); font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.2s, background 0.4s, color 0.4s;
  outline: none; resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-pale); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.btn-submit {
  background: var(--primary); color: white; padding: 14px 28px;
  border-radius: 10px; font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(202,154,4,0.35); text-align: center;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); }
.form-success { background: #F0FFF4; color: #276749; border: 1px solid #9AE6B4; border-radius: 10px; padding: 14px 18px; font-size: 0.9rem; font-weight: 600; }

@media (max-width: 1024px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}
