/* ============================================================
   InfraMap AI — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #0B1A2E;
  --navy-mid:    #132440;
  --navy-deep:   #070F1C;
  --blue:        #0057B8;
  --blue-light:  #0078D4;
  --cyan:        #00AEEF;
  --cyan-dim:    #E4F5FD;
  --bg:          #F4F7FB;
  --surface:     #FFFFFF;
  --text:        #1C2B3A;
  --text-mid:    #4A5C6E;
  --text-light:  #7A8FA0;
  --border:      #D8E2EC;
  --n100:        #F4F7FB;
  --n200:        #E8EEF5;
  --n300:        #D8E2EC;
  --n400:        #B0BEC9;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-sm: 0 1px 3px rgba(11,26,46,.06),0 1px 2px rgba(11,26,46,.04);
  --sh-md: 0 4px 16px rgba(11,26,46,.10);
  --sh-lg: 0 12px 40px rgba(11,26,46,.14);

  --max: 1160px;
  --py: 96px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{cursor:pointer;font-family:inherit}
h1{font-size:clamp(2rem,4vw,3.25rem);font-weight:800;line-height:1.17;letter-spacing:-.025em}
h2{font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;line-height:1.22;letter-spacing:-.018em}
h3{font-size:1.2rem;font-weight:600;line-height:1.3}
h4{font-size:1rem;font-weight:600;line-height:1.4}
p{line-height:1.72}

.container{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:24px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:var(--r-md);font-size:.9375rem;font-weight:600;border:2px solid transparent;white-space:nowrap;line-height:1}
.btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-light);border-color:var(--blue-light)}
.btn-outline{background:transparent;color:var(--blue);border-color:var(--blue)}
.btn-outline:hover{background:var(--blue);color:#fff}
.btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.btn-outline-light:hover{background:rgba(255,255,255,.1)}
.btn-ghost{background:transparent;color:var(--text-mid);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-sm{padding:8px 16px;font-size:.875rem}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{position:sticky;top:0;z-index:100;background:var(--navy);border-bottom:1px solid rgba(255,255,255,.07)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:68px;max-width:var(--max);margin-inline:auto;padding-inline:24px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{flex-shrink:0}
.brand-name{font-size:1.125rem;font-weight:700;color:#fff;letter-spacing:-.01em}
.brand-name span{color:var(--cyan)}
.header-right{display:flex;align-items:center;gap:20px}
.header-phone{color:rgba(255,255,255,.45);font-size:.875rem;font-weight:500}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header{text-align:center;margin-bottom:56px}
.section-tag{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--blue);margin-bottom:12px}
.section-header h2{color:var(--navy);margin-bottom:14px}
.section-header p{color:var(--text-mid);max-width:540px;margin-inline:auto;font-size:1.0625rem}
.on-dark .section-tag{color:var(--cyan)}
.on-dark h2{color:#fff}
.on-dark p{color:rgba(255,255,255,.55)}

/* ============================================================
   BLOCK 1 — HERO
   ============================================================ */
.hero{background:var(--navy);padding:80px 0 88px;overflow:hidden}
.hero-content{display:flex;align-items:center;gap:56px;min-height:500px}
.hero-text{flex:1;max-width:580px}
.hero-visual{flex:1;position:relative}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(0,174,239,.12);color:var(--cyan);font-size:.7rem;font-weight:700;padding:5px 12px;border-radius:99px;border:1px solid rgba(0,174,239,.25);margin-bottom:20px;letter-spacing:.08em;text-transform:uppercase}
.hero h1{color:#fff;margin-bottom:20px}
.hero h1 em{color:var(--cyan);font-style:normal}
.hero-lead{color:rgba(255,255,255,.55);font-size:1.0625rem;margin-bottom:36px;max-width:480px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-img{width:100%;aspect-ratio:16/10;background:var(--navy-mid);border-radius:var(--r-lg);border:1px solid rgba(255,255,255,.09);position:relative;overflow:hidden}
.hero-img .image-placeholder{width:100%;height:100%;object-fit:cover;opacity:0.1}
.hero-img-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:rgba(255,255,255,.3);font-size:.8125rem}

/* ============================================================
   BLOCK 2 — STATS BAR
   ============================================================ */
.stats-bar{background:var(--surface);border-bottom:1px solid var(--border)}
.stats-inner{display:grid;grid-template-columns:repeat(4,1fr)}
.stat{padding:28px 24px;border-right:1px solid var(--border);text-align:center}
.stat:last-child{border-right:none}
.stat-num{font-size:2rem;font-weight:800;color:var(--blue);letter-spacing:-.02em;line-height:1;margin-bottom:6px}
.stat-lbl{font-size:.8125rem;color:var(--text-mid);font-weight:500}

/* ============================================================
   BLOCK 3 — FEATURES
   ============================================================ */
.features{padding:var(--py) 0;background:var(--bg)}
.features .section-header{text-align:center}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:32px;box-shadow:var(--sh-sm)}
.feat-icon{width:48px;height:48px;background:var(--cyan-dim);border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;margin-bottom:20px;color:var(--blue);flex-shrink:0}
.feat-card h3{color:var(--navy);margin-bottom:10px}
.feat-card p{color:var(--text-mid);font-size:.9375rem}

/* ============================================================
   BLOCK 4 — HOW IT WORKS
   ============================================================ */
.how-it-works{padding:var(--py) 0;background:var(--navy)}
.how-it-works .section-header{text-align:center}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;position:relative}
.steps::before{content:'';position:absolute;top:27px;left:calc(16.66% + 16px);right:calc(16.66% + 16px);height:1px;background:rgba(255,255,255,.1)}
.step{text-align:center;padding:8px 16px 0}
.step-num{width:56px;height:56px;border-radius:50%;background:var(--blue);color:#fff;font-size:1.25rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;position:relative;z-index:1}
.step h3{color:#fff;margin-bottom:10px}
.step p{color:rgba(255,255,255,.5);font-size:.9375rem}

/* ============================================================
   BLOCK 5 — PRODUCTS
   ============================================================ */
.products{padding:var(--py) 0;background:var(--bg)}
.products .section-header{text-align:center}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.prod-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-sm);display:flex;flex-direction:column}
.prod-img{width:100%;aspect-ratio:16/9;background:var(--n200);position:relative;border-bottom:1px solid var(--border);overflow:hidden}
.prod-img .image-placeholder{width:100%;height:100%;object-fit:cover}
.prod-img-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--n400);font-size:.8125rem;gap:8px;flex-direction:column}
.prod-body{padding:24px;flex:1;display:flex;flex-direction:column}
.prod-tag{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--blue);margin-bottom:8px}
.prod-card h3{color:var(--navy);margin-bottom:10px;font-size:1.125rem}
.prod-card p{color:var(--text-mid);font-size:.9rem;flex:1;margin-bottom:20px}
.prod-pricing{margin-bottom:20px}
.price{font-size:1.25rem;font-weight:700;color:var(--blue);margin-bottom:4px}
.price-note{font-size:.8125rem;color:var(--text-light)}

/* ============================================================
   BLOCK 6 — DASHBOARD PREVIEW
   ============================================================ */
.dash-preview{padding:var(--py) 0;background:var(--navy-mid)}
.dash-preview .section-header{text-align:center}
.dash-frame{width:100%;max-width:900px;margin:0 auto;border-radius:var(--r-xl);overflow:hidden;border:1px solid rgba(255,255,255,.1);box-shadow:var(--sh-lg)}
.dash-bar{background:#0A1628;padding:12px 20px;display:flex;align-items:center;gap:8px;border-bottom:1px solid rgba(255,255,255,.06)}
.dot{width:10px;height:10px;border-radius:50%}
.dot-r{background:#E05252}.dot-y{background:#E0B84A}.dot-g{background:#3DAB64}
.dash-body{width:100%;aspect-ratio:16/9;background:#0D2040;position:relative;overflow:hidden}
.dash-body .image-placeholder{width:100%;height:100%;object-fit:cover}
.dash-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:rgba(255,255,255,.25);font-size:.8125rem}

/* ============================================================
   BLOCK 7 — AI AUTOMATION
   ============================================================ */
.ai-section{padding:var(--py) 0;background:var(--bg)}
.ai-layout{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.ai-content h2{color:var(--navy);margin-bottom:16px}
.ai-content > p{color:var(--text-mid);margin-bottom:24px;font-size:1.0625rem}
.ai-list{display:flex;flex-direction:column;gap:14px;margin-bottom:32px}
.ai-item{display:flex;align-items:flex-start;gap:12px}
.ai-check{width:22px;height:22px;border-radius:50%;background:var(--cyan-dim);flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-top:2px;color:var(--blue)}
.ai-item span{color:var(--text-mid);font-size:.9375rem}
.ai-visual{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);aspect-ratio:4/3;position:relative;overflow:hidden;box-shadow:var(--sh-md)}
.ai-visual .image-placeholder{width:100%;height:100%;object-fit:cover;opacity:0.1}
.ai-visual-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--n400);font-size:.8125rem}

/* ============================================================
   BLOCK 8 — INTEGRATIONS
   ============================================================ */
.integrations{padding:var(--py) 0;background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.integrations .section-header{text-align:center}
.int-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:48px}
.int-item{border:1px solid var(--border);border-radius:var(--r-md);padding:20px 12px;text-align:center;background:var(--bg)}
.int-logo{width:40px;height:40px;border-radius:var(--r-sm);background:var(--n200);margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:var(--blue)}
.int-item span{display:block;font-size:.75rem;font-weight:600;color:var(--text-mid)}

/* ============================================================
   BLOCK 9 — USE CASES
   ============================================================ */
.use-cases{padding:var(--py) 0;background:var(--bg)}
.use-cases .section-header{text-align:center}
.uc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.uc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:32px;display:flex;gap:20px;box-shadow:var(--sh-sm)}
.uc-num{font-size:2.5rem;font-weight:800;color:var(--n200);line-height:1;flex-shrink:0;font-variant-numeric:tabular-nums;min-width:48px}
.uc-card h3{color:var(--navy);margin-bottom:8px}
.uc-card p{color:var(--text-mid);font-size:.9375rem}

/* ============================================================
   BLOCK 10 — CONTACTS
   ============================================================ */
.contacts{padding:var(--py) 0;background:var(--navy)}
.contacts-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.contacts-info{display:flex;flex-direction:column;gap:24px}
.contact-item{display:flex;align-items:flex-start;gap:16px}
.ci-icon{width:44px;height:44px;border-radius:var(--r-md);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--cyan)}
.ci-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.4);margin-bottom:4px}
.ci-value{color:#fff;font-size:.9875rem;font-weight:500}
.ci-value a{color:var(--cyan)}
.contact-form-box{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:var(--r-xl);padding:36px}
.contact-form-box h3{color:#fff;margin-bottom:6px;font-size:1.125rem}
.contact-form-box > p{color:rgba(255,255,255,.45);font-size:.9rem;margin-bottom:24px}
.fg{margin-bottom:16px}
.fg label{display:block;font-size:.8125rem;font-weight:600;color:rgba(255,255,255,.45);margin-bottom:6px}
.fg input,.fg textarea{width:100%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:var(--r-md);padding:10px 14px;color:#fff;font-size:.9375rem;font-family:inherit;outline:none}
.fg input::placeholder,.fg textarea::placeholder{color:rgba(255,255,255,.28)}
.fg input:focus,.fg textarea:focus{border-color:var(--cyan)}
.fg textarea{resize:vertical;min-height:100px}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:var(--navy-deep);padding:40px 0 28px;border-top:1px solid rgba(255,255,255,.06)}
.footer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:32px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.06)}
.footer-brand{max-width:280px}
.footer-brand .brand{margin-bottom:12px}
.footer-tagline{font-size:.875rem;color:rgba(255,255,255,.35);line-height:1.6}
.footer-links{display:flex;gap:48px}
.footer-col h4{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.4);margin-bottom:14px}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col ul li a{font-size:.875rem;color:rgba(255,255,255,.45)}
.footer-col ul li a:hover{color:rgba(255,255,255,.8)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-copy{font-size:.8125rem;color:rgba(255,255,255,.28)}
.footer-legal{display:flex;gap:24px}
.footer-legal a{font-size:.8125rem;color:rgba(255,255,255,.28)}
.footer-legal a:hover{color:rgba(255,255,255,.6)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  :root{--py:72px}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .int-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  :root{--py:56px}
  .hero-content{flex-direction:column;text-align:center}
  .hero-text{max-width:none}
  .stats-inner{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:none}
  .features-grid,.steps,.products-grid{grid-template-columns:1fr}
  .steps::before{display:none}
  .ai-layout{grid-template-columns:1fr}
  .int-grid{grid-template-columns:repeat(2,1fr)}
  .uc-grid{grid-template-columns:1fr}
  .contacts-grid{grid-template-columns:1fr}
  .footer-top{flex-direction:column}
  .footer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
  .header-phone{display:none}
}
@media(max-width:480px){
  .stats-inner{grid-template-columns:1fr}
  .stat{border-right:none;border-bottom:1px solid var(--border)}
  .stat:last-child{border-bottom:none}
  .footer-links{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .footer-legal{flex-wrap:wrap;gap:16px}
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.image-placeholder{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}