/* ═══════════════ Software for Future, LLC — sw4future.com ═══════════════ */
:root {
  --bg: #0a0f1c;
  --bg-alt: #0d1425;
  --card: #121a2e;
  --card-hover: #16203a;
  --border: #1e2a44;
  --text: #e9f3ff;
  --text-dim: #8fa3c2;
  --accent-1: #00b4ff;
  --accent-2: #00d4a8;
  --grad: linear-gradient(120deg, #00b4ff, #00d4a8);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 180, 255, .35); }

h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 28, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 22px; border-radius: 99px;
  background: var(--grad); color: #04121f !important; font-weight: 600 !important;
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 180, 255, .35); }
.lang-switch {
  display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 99px;
  padding: 3px; background: rgba(18, 26, 46, .6);
}
.lang-switch button {
  background: transparent; border: none; color: var(--text-dim);
  padding: 5px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--grad); color: #04121f; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 24px 80px;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, .14), transparent 65%);
  pointer-events: none; z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 99px;
  border: 1px solid var(--border); background: rgba(18, 26, 46, .6);
  font-size: .85rem; color: var(--text-dim); margin-bottom: 32px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 168, .5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 168, 0); }
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim);
  max-width: 640px; margin: 28px auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 15px 36px; border-radius: 99px;
  font-weight: 600; font-size: 1rem; transition: all .25s; cursor: pointer;
}
.btn-primary {
  background: var(--grad); color: #04121f;
  box-shadow: 0 8px 30px rgba(0, 180, 255, .3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 180, 255, .45); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-1); color: var(--accent-1); }
.btn-light { background: #fff; color: #04121f; }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 255, 255, .25); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-dim); border-radius: 16px;
  display: flex; justify-content: center; padding-top: 8px; opacity: .55;
}
.wheel {
  width: 3px; height: 8px; background: var(--text-dim); border-radius: 3px;
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-1); margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); margin-top: 16px; }

/* ── Cards ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: all .3s;
}
.card:hover {
  background: var(--card-hover); transform: translateY(-6px);
  border-color: rgba(0, 180, 255, .35); box-shadow: var(--shadow);
}
.card-icon { width: 52px; height: 52px; margin-bottom: 22px; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: .94rem; margin-bottom: 18px; }
.card-list { list-style: none; }
.card-list li {
  font-size: .88rem; color: var(--text-dim); padding: 5px 0 5px 24px; position: relative;
}
.card-list li::before {
  content: '→'; position: absolute; left: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}

/* ── Split layout ── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split-text h2 { margin-bottom: 22px; }
.split-text h2 sup { font-size: .45em; }
.split-text p { color: var(--text-dim); margin-bottom: 18px; }
.split-visual { position: relative; }
.dashboard-svg, .globe-svg { width: 100%; height: auto; position: relative; z-index: 1; }
.visual-glow {
  position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, .12), transparent 70%);
  z-index: 0;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.tag {
  padding: 7px 16px; border-radius: 99px; font-size: .82rem; font-weight: 500;
  background: rgba(0, 180, 255, .1); border: 1px solid rgba(0, 180, 255, .25);
  color: var(--accent-1);
}

/* dashboard SVG animations */
.chart-line {
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: drawline 2.4s ease forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
.blink { animation: blink 2.4s infinite; }
.blink.d2 { animation-delay: .8s; }
.blink.d3 { animation-delay: 1.6s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ping { animation: ping 2.6s infinite; transform-origin: center; transform-box: fill-box; }
.ping.d2 { animation-delay: .9s; }
.ping.d3 { animation-delay: 1.7s; }
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.55); }
}
.connection { stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawline 3.2s ease forwards; }

/* ── Industries ── */
.industries {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
}
.industry {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .92rem; font-weight: 500;
  color: var(--text-dim); transition: all .3s; text-align: center;
}
.industry:hover { transform: translateY(-4px); border-color: rgba(0, 212, 168, .4); color: var(--text); }
.industry-icon { font-size: 2rem; }

/* ── Timeline ── */
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px;
  counter-reset: step;
}
.timeline-item {
  position: relative; padding: 34px 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .3s;
}
.timeline-item:hover { transform: translateY(-6px); border-color: rgba(0, 180, 255, .35); }
.timeline-num {
  font-family: 'JetBrains Mono', monospace; font-size: 2.6rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: .85; margin-bottom: 16px;
}
.timeline-item h3 { margin-bottom: 10px; }
.timeline-item p { font-size: .92rem; color: var(--text-dim); }

/* ── About ── */
.about-facts { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.fact {
  padding: 18px 22px; background: var(--card); border-left: 3px solid;
  border-image: var(--grad) 1; border-radius: 0 12px 12px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.fact strong { font-size: .98rem; }
.fact span { font-size: .88rem; color: var(--text-dim); }

/* ── CTA banner ── */
.cta-banner {
  padding: 90px 0; text-align: center;
  background: linear-gradient(120deg, rgba(0, 180, 255, .14), rgba(0, 212, 168, .12)),
              var(--bg-alt);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--text-dim); margin-bottom: 34px; }

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 42px 26px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .3s;
}
.contact-card:hover {
  transform: translateY(-6px); border-color: rgba(0, 180, 255, .4); box-shadow: var(--shadow);
}
.contact-icon { width: 46px; height: 46px; margin-bottom: 18px; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); font-size: .94rem; }

/* ── Contact form ── */
.contact-form {
  max-width: 720px; margin: 56px auto 0; padding: 42px 36px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-form h3 { margin-bottom: 26px; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.form-field input, .form-field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: .95rem;
  padding: 12px 14px; transition: border-color .2s; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, .12);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}
.form-status { margin-top: 16px; text-align: center; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #ff6b6b; }

/* ═══════════ FOOTER ═══════════ */
footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 48px;
  padding-top: 64px; padding-bottom: 48px; flex-wrap: wrap;
}
.footer-brand p { color: var(--text-dim); font-size: .88rem; margin-top: 16px; max-width: 340px; }
.footer-info { text-align: right; font-size: .88rem; color: var(--text-dim); }
.footer-info p { margin-bottom: 4px; }
.footer-info strong { color: var(--text); }
.footer-info a:hover { color: var(--accent-1); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .8rem; color: var(--text-dim);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .footer-info { text-align: left; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 70px; right: 0; bottom: 0; width: 260px;
    flex-direction: column; align-items: flex-start; padding: 32px 28px;
    background: rgba(10, 15, 28, .97); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .3s;
  }
  .nav-links.open { transform: none; }
  .nav-burger { display: block; }
  .section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
