/* ============================================
   Iron Clad Software — styles.css
   ============================================ */

:root {
  --black: #06090a;
  --panel: #0c1113;
  --panel-alt: #10171a;
  --line: rgba(255, 255, 255, 0.08);

  --teal: #34e8ae;
  --blue: #2b9be0;
  --gradient: linear-gradient(100deg, var(--teal) 0%, var(--blue) 100%);
  --gradient-soft: linear-gradient(100deg, rgba(52, 232, 174, 0.14), rgba(43, 155, 224, 0.14));

  --text: #eef5f3;
  --muted: #93a6a3;
  --muted-2: #6d817e;

  --radius: 10px;
  --max-width: 1160px;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 62ch;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: #04120e;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(52, 232, 174, 0.25);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 10, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 54px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: none;
}

.brand-name em {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 560px) {
  .brand-name {
    display: block;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.25s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 24px 140px;
  text-align: center;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-hex {
  width: min(1000px, 150%);
  height: auto;
  opacity: 0.5;
}

.hero-hex polyline {
  fill: none;
  stroke: url(#none);
  stroke: var(--teal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero-hex polyline:last-child {
  stroke: var(--blue);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  height: 145px;
  width: auto;
  margin: 0 auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 0.4em;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 auto 2.4em;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- About ---------- */

.about {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.about-copy strong {
  color: var(--text);
}

.values {
  display: grid;
  gap: 20px;
}

.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.value-card:hover {
  border-color: rgba(52, 232, 174, 0.4);
  transform: translateY(-3px);
}

.value-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Services ---------- */

.services {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--panel-alt) 60%, transparent);
}

.services h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.9em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.service-card:hover {
  border-color: transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.service-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3em;
}

.contact-intro {
  margin-bottom: 2.4em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 232, 174, 0.4);
}

.contact-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--muted-2);
  text-transform: none;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -60%;
  width: 60%;
  height: 200%;
  background: var(--gradient);
  opacity: 0.12;
  transform: rotate(-18deg);
  filter: blur(40px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.footer-text p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.footer-tagline {
  color: var(--text);
  font-weight: 500;
}

.footer-copy {
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-bottom: 0 !important;
}

.footer-logo {
  height: 52px;
  width: auto;
  opacity: 0.9;
  flex-shrink: 0;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(43, 155, 224, 0.35);
  z-index: 200;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px rgba(52, 232, 174, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #04120e;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    background: rgba(6, 9, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 90px 20px 100px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}