/*
Theme Name: Saadat Soft
Theme URI: https://www.saadatsoft.com
Author: Saadat Soft
Author URI: https://www.saadatsoft.com
Description: Custom one-page theme for Saadat Soft — Smart Dashboard & IT Solutions. Converted from a static HTML design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: saadatsoft
*/


  :root {
    --ink: #0A0F3D;
    --ink-2: #131a52;
    --blue: #1E88E5;
    --cyan: #00C2FF;
    --bg: #F4F7FC;
    --surface: #FFFFFF;
    --text: #333333;
    --text-soft: #5b6270;
    --on-dark: #E7EBFA;
    --on-dark-soft: #9AA6D6;
    --line: #E1E6F2;
    --radius: 6px;
  }
  :root:not([data-theme="light"]) {
    @media (prefers-color-scheme: dark) {
      --bg: #0d1224;
      --surface: #141a37;
      --text: #dfe3f2;
      --text-soft: #a6adc9;
      --line: #262e54;
      --on-dark: #E7EBFA;
      --on-dark-soft: #97a1cf;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0d1224;
    --surface: #141a37;
    --text: #dfe3f2;
    --text-soft: #a6adc9;
    --line: #262e54;
  }

  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: hidden;
  }
  h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; margin: 0; color: var(--ink); font-weight: 600; }
  :root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] h4 { color: var(--on-dark); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3, :root:not([data-theme="light"]) h4 { color: var(--on-dark); }
  }
  p { line-height: 1.65; color: var(--text-soft); margin: 0; }
  a { color: inherit; text-decoration: none; }
  .mono { font-family: 'IBM Plex Mono', monospace; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
  section { padding: 96px 0; }
  img, svg { max-width: 100%; display: block; }
  .overflow-scroll { overflow-x: auto; }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(244,247,252,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  :root[data-theme="dark"] header.nav { background: rgba(13,18,36,0.86); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header.nav { background: rgba(13,18,36,0.86); } }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
  :root[data-theme="dark"] .brand { color: var(--on-dark); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: var(--on-dark); } }
  .brand-mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--cyan)); position: relative; flex-shrink: 0; }
  .brand-mark::after {
    content: ""; position: absolute; left: 7px; right: 7px; bottom: 6px; top: 13px;
    background: linear-gradient(to top, rgba(255,255,255,.95) 0 35%, transparent 35%),
                linear-gradient(to top, rgba(255,255,255,.7) 0 70%, transparent 70%),
                linear-gradient(to top, rgba(255,255,255,.95) 0 50%, transparent 50%);
    background-size: 28% 100%; background-repeat: no-repeat;
    background-position: left bottom, center bottom, right bottom;
  }
  nav.links { display: flex; gap: 34px; }
  nav.links a { font-size: 0.93rem; font-weight: 500; color: var(--text-soft); transition: color .15s ease; }
  nav.links a:hover, nav.links a:focus-visible { color: var(--blue); }
  .nav-cta { display: flex; align-items: center; gap: 18px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: 0.92rem;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
  }
  .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .btn-primary { background: var(--ink); color: #fff; }
  .btn-primary:hover { background: var(--blue); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  :root[data-theme="dark"] .btn-ghost { color: var(--on-dark); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: var(--on-dark); } }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
  .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
  :root[data-theme="dark"] .menu-toggle span { background: var(--on-dark); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu-toggle span { background: var(--on-dark); } }

  @media (max-width: 860px) {
    nav.links { position: fixed; top: calc(76px + env(safe-area-inset-top,0px)); left: 0; right: 0; bottom: 0;
      background: var(--bg); flex-direction: column; padding: 30px 28px; gap: 6px; transform: translateX(100%);
      transition: transform .25s ease; }
    nav.links.open { transform: translateX(0); }
    nav.links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-cta .btn-ghost { display: none; }
    .menu-toggle { display: block; }
  }

  /* ---------- Hero ---------- */
  .hero { padding: 76px 0 100px; position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
    background:
      radial-gradient(560px 320px at 82% 10%, rgba(0,194,255,0.16), transparent 65%),
      radial-gradient(480px 300px at 10% 0%, rgba(30,136,229,0.12), transparent 60%);
    pointer-events: none; z-index: 0;
  }
  .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  .eyebrow-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--blue); font-weight: 600; font-size: 0.86rem; }
  .eyebrow-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,194,255,0.18); }
  .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.35rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 15ch; }
  .hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lead { margin-top: 22px; font-size: 1.08rem; max-width: 46ch; }
  .hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
  .hero-tags { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .hero-tags span { font-size: 0.82rem; color: var(--text-soft); display: flex; align-items: center; gap: 7px; }
  .hero-tags span::before { content: ""; width: 5px; height: 5px; background: var(--blue); border-radius: 1px; }

  /* dashboard preview card */
  .panel-shell { position: relative; z-index: 1; }
  .dash-card {
    background: var(--ink); border-radius: 14px; padding: 22px 22px 26px;
    box-shadow: 0 30px 60px -25px rgba(10,15,61,0.45);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .dash-top .dots { display: flex; gap: 6px; }
  .dash-top .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
  .dash-top .label { color: var(--on-dark-soft); font-size: 0.72rem; letter-spacing: 0.02em; }
  .dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .kpi { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 12px 12px 10px; }
  .kpi .num { color: #fff; font-size: 1.18rem; font-weight: 600; }
  .kpi .cap { color: var(--on-dark-soft); font-size: 0.68rem; margin-top: 3px; display: block; }
  .kpi .delta { color: #57e0a8; font-size: 0.68rem; }
  .chart-box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 14px 14px 6px; }
  .chart-box svg { width: 100%; height: auto; overflow: visible; }
  .live-badge { display: inline-flex; align-items: center; gap: 6px; color: #57e0a8; font-size: 0.68rem; margin-top: 10px; }
  .live-badge .p { width: 6px; height: 6px; background: #57e0a8; border-radius: 50%; animation: pulse 1.8s infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
  @media (prefers-reduced-motion: reduce) { .live-badge .p { animation: none; } }
  .float-chip {
    position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 14px; box-shadow: 0 16px 30px -14px rgba(10,15,61,0.28); display: flex; align-items: center; gap: 9px;
  }
  .float-chip.a { top: -22px; right: 18px; }
  .float-chip.b { bottom: -22px; left: -18px; }
  .float-chip .ico { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: rgba(30,136,229,0.12); color: var(--blue); flex-shrink: 0; }
  .float-chip .txt .n { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
  .float-chip .txt .l { font-size: 0.68rem; color: var(--text-soft); }
  @media (max-width: 860px) { .float-chip { display: none; } }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
  }

  /* ---------- Stats band ---------- */
  .stats-band { background: var(--ink); padding: 52px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .stat { text-align: left; border-left: 2px solid rgba(255,255,255,0.14); padding-left: 18px; }
  .stat .n { font-family: 'IBM Plex Mono', monospace; color: #fff; font-size: 2.1rem; font-weight: 600; }
  .stat .l { color: var(--on-dark-soft); font-size: 0.86rem; margin-top: 4px; }
  @media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

  /* ---------- Section heads ---------- */
  .head { max-width: 640px; margin-bottom: 52px; }
  .head .kicker { color: var(--blue); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; display: block; }
  .head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.01em; }
  .head p { margin-top: 14px; font-size: 1.02rem; }

  /* ---------- Services ---------- */
  .svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .svc {
    background: var(--surface); padding: 26px 22px; border-left: 3px solid transparent;
    transition: border-color .15s ease, background .15s ease;
  }
  .svc:hover { border-left-color: var(--cyan); background: linear-gradient(180deg, rgba(0,194,255,0.05), transparent); }
  .svc .ico { width: 38px; height: 38px; color: var(--blue); margin-bottom: 16px; }
  .svc h3 { font-size: 1.02rem; margin-bottom: 8px; }
  .svc p { font-size: 0.9rem; }
  @media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

  /* ---------- About ---------- */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .about-copy p + p { margin-top: 16px; }
  .mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .mv-card { background: var(--ink); border-radius: 10px; padding: 22px; }
  .mv-card h4 { color: #fff; font-size: 0.98rem; margin-bottom: 8px; }
  .mv-card p { color: var(--on-dark-soft); font-size: 0.88rem; }
  .why-list { display: grid; gap: 12px; margin-top: 8px; }
  .why-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
  .why-list .check { width: 20px; height: 20px; border-radius: 5px; background: rgba(30,136,229,0.12); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
  .why-list .check svg { width: 12px; height: 12px; }
  @media (max-width: 860px) { .about-grid, .mv-grid { grid-template-columns: 1fr; } }

  /* ---------- Projects ---------- */
  .proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .proj {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .proj .top { display: flex; align-items: center; justify-content: space-between; }
  .proj .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--cyan); display: flex; align-items: center; justify-content: center; }
  .proj .ico svg { width: 18px; height: 18px; }
  .proj .tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--text-soft); }
  .proj h3 { font-size: 1.05rem; }
  .proj ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
  .proj li { font-size: 0.86rem; color: var(--text-soft); padding-left: 15px; position: relative; }
  .proj li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 2px; background: var(--blue); }
  @media (max-width: 960px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

  /* ---------- Testimonials ---------- */
  .test-band { background: var(--bg); }
  .test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .test { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: 8px; padding: 26px; position: relative; }
  .test .q { font-size: 0.98rem; color: var(--text); }
  .test .who { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
  .test .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; font-family: 'Space Grotesk', sans-serif; }
  .test .name { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
  :root[data-theme="dark"] .test .name { color: var(--on-dark); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .test .name { color: var(--on-dark); } }
  @media (max-width: 860px) { .test-grid { grid-template-columns: 1fr; } }

  /* ---------- CTA banner ---------- */
  .cta-band { background: linear-gradient(120deg, var(--ink) 0%, #101a5e 100%); border-radius: 16px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
  .cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 20ch; }
  .cta-band p { color: var(--on-dark-soft); margin-top: 10px; max-width: 40ch; }
  .cta-band .btn-primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); }

  /* ---------- Contact ---------- */
  .contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
  .contact-info { display: flex; flex-direction: column; gap: 22px; }
  .info-row { display: flex; gap: 14px; align-items: flex-start; }
  .info-row .ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(30,136,229,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .info-row .ico svg { width: 17px; height: 17px; }
  .info-row .t { font-size: 0.78rem; color: var(--text-soft); }
  .info-row .v { font-size: 0.96rem; font-weight: 600; color: var(--ink); margin-top: 2px; }
  :root[data-theme="dark"] .info-row .v { color: var(--on-dark); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .info-row .v { color: var(--on-dark); } }

  form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { margin-bottom: 16px; }
  .field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
  .field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px;
    font-family: inherit; font-size: 0.92rem; background: var(--bg); color: var(--text);
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
  .field textarea { resize: vertical; min-height: 100px; }
  .form-msg { margin-top: 16px; padding: 12px 14px; border-radius: 7px; background: rgba(87,224,168,0.12); color: #1c8a5e; font-size: 0.88rem; display: none; }
  .form-msg.show { display: block; }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

  /* ---------- Footer ---------- */
  footer { background: var(--ink); padding: 64px 0 28px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
  footer .brand { color: #fff; margin-bottom: 14px; }
  footer .about-blurb { color: var(--on-dark-soft); font-size: 0.88rem; max-width: 34ch; }
  footer h5 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 0.86rem; margin-bottom: 16px; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
  footer ul a { color: var(--on-dark-soft); font-size: 0.88rem; }
  footer ul a:hover { color: var(--cyan); }
  .social-row { display: flex; gap: 10px; margin-top: 4px; }
  .social-row a { width: 34px; height: 34px; border-radius: 7px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: var(--on-dark-soft); }
  .social-row a:hover { color: #fff; background: rgba(255,255,255,0.12); }
  .social-row svg { width: 15px; height: 15px; }
  .foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .foot-bottom span { color: var(--on-dark-soft); font-size: 0.8rem; }
  @media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

  @media (max-width: 640px) {
    section { padding: 64px 0; }
    .wrap { padding: 0 20px; }
    .cta-band { padding: 40px 26px; }
  }
