/* ================================================================
   F1 SOFTWARE SOLUTIONS
   Brand: Carbon Dark #0F172A | Velocity Crimson #EF4444
          Cyber Cyan #06B6D4 | Alabaster #F8FAFC
================================================================ */

:root {
  --c-dark: #0F172A;
  --c-dark-2: #1E293B;
  --c-dark-3: #334155;
  --c-red: #EF4444;
  --c-red-dk: #DC2626;
  --c-cyan: #06B6D4;
  --c-light: #F8FAFC;
  --c-light-2: #F1F5F9;
  --c-white: #FFFFFF;
  --c-text-body: #1E293B;
  --c-text-muted: #64748B;
  --c-text-dim: #94A3B8;
  --c-border-dk: rgba(255,255,255,0.08);
  --c-border-lt: rgba(15,23,42,0.1);
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sec-py: clamp(4.5rem, 8vw, 7rem);
  --radius: 8px;
  --ease: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--c-text-body);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: 0; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: 0; }

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 9999;
  background: var(--c-red);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-py); }
.section-light { background: var(--c-light); }
.section-white { background: var(--c-white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--c-cyan);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}
.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.section-header {
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--c-dark);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 620px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.55rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-red-dk);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.22);
  transform: translateY(-1px);
}
.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--c-white);
  background: rgba(255,255,255,0.04);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.btn-full { width: 100%; }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding-block: 1rem;
  background: rgba(15,23,42,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding var(--ease), background var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  padding-block: 0.72rem;
  background: rgba(15,23,42,0.95);
  box-shadow: 0 8px 28px rgba(2,6,23,0.24);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  flex: 0 0 auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.logo-name {
  color: var(--c-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}
.logo-tag {
  color: rgba(148,163,184,0.74);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links .nav-cta {
  color: #fff;
  background: var(--c-red);
  padding-inline: 1.05rem;
  margin-left: 0.45rem;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--c-red-dk);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  z-index: 220;
}
.nav-toggle span {
  width: 25px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding-top: clamp(7.5rem, 12vw, 9.5rem);
  padding-bottom: 2.25rem;
  background:
    radial-gradient(ellipse 70% 45% at 58% 50%, rgba(239,68,68,0.14), transparent 68%),
    radial-gradient(ellipse 55% 70% at 90% 8%, rgba(6,182,212,0.12), transparent 60%),
    var(--c-dark);
  color: var(--c-white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.hero-body { min-width: 0; }
.hero-eyebrow {
  color: var(--c-cyan);
  margin-bottom: 1.2rem;
  max-width: 100%;
}
.hero-title {
  max-width: 720px;
  font-size: clamp(3rem, 6.1vw, 5.3rem);
  font-weight: 800;
  line-height: 0.98;
  color: var(--c-white);
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--c-red);
}
.hero-description {
  max-width: 590px;
  color: var(--c-text-dim);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.78;
  margin-bottom: 2.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-art {
  position: relative;
  min-width: 0;
}
.hero-art img {
  width: min(100%, 680px);
  margin-inline: auto;
  filter: drop-shadow(0 34px 70px rgba(2,6,23,0.38));
}
.hero-note {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.hero-note p {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.05rem;
  text-align: center;
  color: rgba(226,232,240,0.82);
  font-size: 0.98rem;
}
.hero-note a {
  color: var(--c-cyan);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.75rem;
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(15,23,42,0.06);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-cyan));
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,68,68,0.2);
  box-shadow: 0 22px 54px rgba(15,23,42,0.11);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--c-red);
  background: rgba(239,68,68,0.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 {
  color: var(--c-dark);
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
}
.service-card p {
  color: var(--c-text-muted);
  font-size: 0.94rem;
  line-height: 1.68;
  margin-bottom: 1.3rem;
}
.service-card a {
  color: var(--c-red);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: auto;
}
.service-card a::after { content: ' >'; }

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split-art img {
  width: min(100%, 560px);
  margin-inline: auto;
}
.split-copy h2 {
  color: var(--c-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  max-width: 700px;
}
.split-copy p {
  color: var(--c-text-muted);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 1rem;
}
.text-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.text-list li {
  color: var(--c-text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.text-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--c-red);
  border-radius: 50%;
}
.text-list strong { color: var(--c-dark); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.process-card {
  background: #fff;
  border: 1px solid var(--c-border-lt);
  border-radius: var(--radius);
  padding: 1.6rem;
  min-height: 210px;
}
.process-card span {
  display: inline-flex;
  color: var(--c-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.process-card h3 {
  color: var(--c-dark);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.process-card p {
  color: var(--c-text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 55% at 78% 30%, rgba(6,182,212,0.12), transparent 60%),
    radial-gradient(ellipse 55% 55% at 18% 75%, rgba(239,68,68,0.15), transparent 62%),
    var(--c-dark);
  color: var(--c-white);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
}
.contact-panel {
  min-width: 0;
  background: rgba(30,41,59,0.82);
  border: 1px solid var(--c-border-dk);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(2,6,23,0.28);
}
.contact-info-panel {
  overflow: hidden;
}
.contact-info-panel,
.contact-form-panel {
  padding: clamp(1.5rem, 4vw, 2rem);
}
.contact-info-panel .section-label,
.contact-form-panel .section-label {
  color: var(--c-cyan);
}
.contact-info-panel h2,
.contact-form-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.contact-lede {
  color: var(--c-text-dim);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 1.5rem;
}
.contact-list {
  display: grid;
  gap: 0;
  margin-bottom: 1.5rem;
}
.contact-list div {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-list div:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-list dt {
  color: rgba(226,232,240,0.72);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-list dd {
  color: rgba(226,232,240,0.82);
  font-size: 0.94rem;
}
.contact-list a {
  color: var(--c-white);
  transition: color var(--ease);
}
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--c-cyan);
}
.contact-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(6,182,212,0.18), rgba(239,68,68,0.12)),
    var(--c-dark-2);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.05);
}
.contact-form-panel h2 {
  max-width: 520px;
}
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}
.form-group label {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 800;
}
.form-group label span { color: var(--c-red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  color: var(--c-white);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.16);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.form-group select option { background: var(--c-dark-2); color: var(--c-white); }
.form-group textarea { min-height: 116px; resize: vertical; }
.form-note {
  color: rgba(148,163,184,0.55);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 0.85rem;
}
.form-status {
  min-height: 1.3rem;
  margin-top: 0.85rem;
  color: var(--c-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}
.form-status.error {
  color: #fca5a5;
}

.footer {
  background: #080C17;
  color: var(--c-white);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--c-text-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 390px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.55rem;
}
.footer-col a {
  color: var(--c-text-dim);
  font-size: 0.9rem;
  transition: color var(--ease);
}
.footer-col a:hover,
.footer-col a:focus-visible,
.footer-cta-link { color: var(--c-cyan) !important; }
.footer-bottom { padding-block: 1.35rem; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: rgba(148,163,184,0.48);
  font-size: 0.82rem;
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-body,
  .hero-art {
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-art { animation-delay: 0.12s; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1024px) {
  .hero-layout,
  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-title { max-width: 780px; }
  .hero-art img { max-width: 620px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 84vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 5.5rem 1.4rem 2rem;
    background: var(--c-dark-2);
    border-left: 1px solid var(--c-border-dk);
    box-shadow: -14px 0 42px rgba(2,6,23,0.42);
    transform: translateX(110%);
    transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
  .logo-name { font-size: 0.72rem; }
  .logo-tag { font-size: 0.58rem; }
}

@media (max-width: 700px) {
  .services-grid,
  .process-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 7rem;
  }
  .hero-title { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-art {
    margin-top: -2.5rem;
    margin-bottom: -2.5rem;
  }
  .hero-art img {
    transform: translateY(-1.5rem);
  }
  .hero-note p { text-align: left; }
  .split-section { gap: 2rem; }
  .split-art { order: 2; }
  .split-copy { order: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-label {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }
  .section-label::before { width: 1.45rem; }
  .hero-art img { max-width: 112%; margin-left: -6%; }
  .contact-info-panel,
  .contact-form-panel { padding: 1.35rem; }
}
