/* ═══════════════════════════════════════════════
   Atto Devices — style.css
   ═══════════════════════════════════════════════ */

:root {
  --bg: #06070f;
  --purple: #7B3FE4;
  --teal: #2ecfcf;
  --white: #eeeef4;
  --dim: #7a809a;
  --border: rgba(255,255,255,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── FOCUS STATES ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 200;
  background: var(--purple);
  color: var(--white);
  padding: 10px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  left: 16px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  height: 80px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 7, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo { display: flex; align-items: center; text-decoration: none; gap: 10px; }

.logo-cube {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  position: relative;
}

.logo-text {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--white);
  white-space: nowrap;
}

.logo-atto { font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 32px; }

.nav-right a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-right a:hover { color: var(--white); }

.nav-contact {
  color: var(--teal) !important;
  border: 1px solid rgba(46, 207, 207, 0.3);
  padding: 7px 16px;
  border-radius: 2px;
  transition: all 0.2s !important;
}

.nav-contact:hover {
  background: rgba(46, 207, 207, 0.08) !important;
  border-color: var(--teal) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav menu */
.nav-menu {
  display: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(123,63,228,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(46,207,207,0.06) 0%, transparent 60%);
  pointer-events: none;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,63,228,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,63,228,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero h1 {
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: up 0.7s 0.2s ease forwards;
}

.hero h1 strong {
  font-weight: 500;
  color: var(--purple);
}

.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  color: var(--dim);
  max-width: 500px;
  line-height: 1.65;
  opacity: 0;
  animation: up 0.7s 0.35s ease forwards;
}

.hero-sub b { color: var(--white); font-weight: 400; }

@keyframes up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── OFFERINGS ── */
.offering {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.4s;
}

.offering:hover { background: rgba(255,255,255,0.012); }

.offering-content {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offering-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 32px;
}

.offering-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
  width: fit-content;
}

.tag-purple { color: var(--purple); background: rgba(123,63,228,0.08); border: 1px solid rgba(123,63,228,0.25); }
.tag-teal   { color: var(--teal);   background: rgba(46,207,207,0.07);  border: 1px solid rgba(46,207,207,0.2); }
.tag-white  { color: var(--white);  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }

.offering h2 {
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.offering h2 strong { font-weight: 500; }

.offering-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}

.offering-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offering-items li {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.offering-items li::before {
  content: '';
  width: 20px; height: 1px;
  flex-shrink: 0;
}

.offering-items.purple li::before { background: var(--purple); }
.offering-items.teal   li::before { background: var(--teal); }
.offering-items.white  li::before { background: rgba(255,255,255,0.3); }

.offering-cta {
  margin-top: 40px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: gap 0.2s, border-color 0.2s;
}

.offering-cta:hover { gap: 16px; border-color: var(--white); }

/* ── VISUAL PANELS ── */
.offering-visual {
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Vis 1: phased array */
.vis-hardware {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(46,207,207,0.06) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
}

.array-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  padding: 40px;
}

.dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1px;
  background: rgba(46,207,207,0.1);
  border: 1px solid rgba(46,207,207,0.18);
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.dot.lit {
  background: rgba(46,207,207,0.45);
  border-color: rgba(46,207,207,0.7);
  box-shadow: 0 0 8px rgba(46,207,207,0.3);
}

/* Vis 2: die floorplan */
.vis-silicon {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(123,63,228,0.07) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}

.die {
  width: 260px; height: 260px;
  border: 1px solid rgba(123,63,228,0.4);
  position: relative;
  background: rgba(123,63,228,0.03);
}

.die-block {
  position: absolute;
  border: 1px solid rgba(123,63,228,0.22);
  background: rgba(123,63,228,0.05);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(123,63,228,0.45);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.die-block:hover {
  background: rgba(123,63,228,0.14);
  border-color: rgba(123,63,228,0.6);
  color: var(--purple);
}

/* ── FOOTER CTA ── */
.footer-cta {
  border-top: 1px solid var(--border);
  padding: 100px 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-cta h3 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.footer-cta h3 strong { font-weight: 500; color: var(--purple); }

.footer-cta p {
  color: var(--dim);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.6;
}

.btn-main {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  border: 1px solid var(--purple);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-main:hover { background: transparent; color: var(--purple); }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.footer-email a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email a:hover { color: var(--white); }

/* ── ATTOLINK SECTION ── */
.attolink-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(123,63,228,0.04) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.attolink-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--teal), transparent);
}

.attolink-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.attolink-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px 48px;
  align-items: start;
  margin-bottom: 64px;
}

.attolink-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attolink-name {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.attolink-name sup {
  font-size: 0.4em;
  color: var(--purple);
  vertical-align: super;
}

.attolink-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.attolink-lead {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 680px;
}

.attolink-contact {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  align-self: start;
  margin-top: 8px;
}

.attolink-contact a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
}

.attolink-contact a:hover {
  color: #fff;
}

.attolink-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 32px;
}

.attolink-feature {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.3s;
}

.attolink-feature:hover { background: rgba(123,63,228,0.04); }

.af-icon {
  font-size: 14px;
  color: var(--purple);
  margin-bottom: 12px;
  opacity: 0.7;
}

.af-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.af-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.attolink-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.model-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.model-card:hover {
  border-color: rgba(123,63,228,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123,63,228,0.15);
}

.model-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.model-name sup {
  font-size: 0.6em;
  color: var(--purple);
  vertical-align: super;
}

.model-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mstat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mval {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.03em;
}

.mlabel {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.attolink-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.attolink-spec-note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .nav-right { display: none; }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: block;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(6, 7, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-overflow-scrolling: touch;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--border);
    z-index: 98;
  }

  .nav-menu.open {
    max-height: 320px;
    padding: 24px;
  }

  .nav-menu a {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    padding: 14px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
  }

  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu a:hover { color: var(--white); }

  .nav-menu .nav-contact-mobile {
    color: var(--teal);
    border-bottom: none;
    margin-top: 8px;
  }

  .hero { padding: 0 24px 64px; }

  .offering { grid-template-columns: 1fr; min-height: auto; }
  .offering-content { padding: 56px 24px; min-height: 70vh; }
  .offering-visual {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 300px;
  }

  .footer-cta { flex-direction: column; align-items: flex-start; padding: 64px 24px; min-height: 60vh; }
  footer { flex-direction: column; gap: 8px; padding: 24px; text-align: center; }

  .attolink-inner { padding: 56px 24px; }
  .attolink-header { grid-template-columns: 1fr; }
  .attolink-features { grid-template-columns: 1fr 1fr; }
  .attolink-models { grid-template-columns: 1fr; }
  .attolink-footer-row { flex-direction: column; align-items: flex-start; }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(38px, 11vw, 64px); }
  .hero { padding: 0 16px 56px; }
  .hero-sub { font-size: 15px; }

  .offering-content { padding: 40px 16px; }
  .offering-visual { min-height: 240px; }

  .attolink-inner { padding: 40px 16px; }
  .attolink-features { grid-template-columns: 1fr; }
  .model-stats { grid-template-columns: 1fr; }

  .footer-cta { padding: 48px 16px; }
  footer { padding: 20px 16px; }

  nav { padding: 0 16px; }
  .nav-menu.open { padding: 20px 16px; }

  .offering-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-main { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── RESPONSIVE: SMALL MOBILE ── */
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(32px, 11vw, 48px); }
  .hero-sub { font-size: 14px; }
  .hero { padding: 0 12px 48px; }

  .offering-content { padding: 32px 12px; }
  .attolink-inner { padding: 32px 12px; }
  .footer-cta { padding: 40px 12px; }
  footer { padding: 16px 12px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
