/* ============================================================
   TORO IT Network services — static site
   Token system
   ============================================================ */
:root{
  --bg:            #12161c;
  --bg-alt:        #171c24;
  --bg-card:       #1b212a;
  --line:          #262e39;
  --text:          #e7eaee;
  --text-muted:    #8b96a5;
  --accent:        #ff6a39;   /* fiber-optic orange */
  --accent-dim:    #ff6a3933;
  --signal:        #4c8dff;   /* ethernet blue */
  --signal-dim:    #4c8dff33;
  --radius:        2px;

  --font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  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; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Background grid texture, subtle */
.grid-field{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

/* ---------------- Header / Nav ---------------- */
header.site{
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(18,22,28,.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}

.brand-mark{
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-sub{
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.menu ul{
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .02em;
}

nav.menu a{
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}

nav.menu a:hover{ color: var(--text); background: var(--bg-card); }

nav.menu a.active{
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner{
  position: relative;
  z-index: 2;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

h1{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

h1 span{ color: var(--accent); }

.lede{
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .03em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary{
  background: var(--accent);
  color: #171003;
  border-color: var(--accent);
  font-weight: 600;
}

.btn.primary:hover{ transform: translateY(-1px); }

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

/* topology diagram */
.topology{
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.topology svg{ width: 100%; height: 100%; }

.topology .node{ fill: var(--bg-card); stroke: var(--line); stroke-width: 1.5; }
.topology .node.core{ fill: var(--accent); stroke: none; }
.topology .link{ stroke: var(--line); stroke-width: 1.4; fill: none; }
.topology .label{
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--text-muted);
  letter-spacing: .04em;
}

.topology .pulse{
  fill: var(--signal);
  filter: drop-shadow(0 0 6px var(--signal));
}

@media (prefers-reduced-motion: no-preference){
  .topology .pulse-a{ animation: travel-a 5.5s linear infinite; }
  .topology .pulse-b{ animation: travel-b 6.8s linear infinite; animation-delay: 1.4s; }
  .topology .pulse-c{ animation: travel-c 4.6s linear infinite; animation-delay: 2.6s; }
}

@keyframes travel-a{ 0%{ offset-distance: 0%; } 100%{ offset-distance: 100%; } }
@keyframes travel-b{ 0%{ offset-distance: 0%; } 100%{ offset-distance: 100%; } }
@keyframes travel-c{ 0%{ offset-distance: 0%; } 100%{ offset-distance: 100%; } }

.pulse-a{ offset-path: path('M 210,60 L 60,150'); }
.pulse-b{ offset-path: path('M 210,60 L 360,150'); }
.pulse-c{ offset-path: path('M 210,60 L 210,260 L 340,320'); }

/* ---------------- Sections ---------------- */
main{ position: relative; }

section{ padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type{ border-bottom: none; }

.section-head{
  max-width: 60ch;
  margin-bottom: 48px;
}

.section-head .eyebrow{ margin-bottom: 14px; }

h2{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.section-head p{ color: var(--text-muted); margin: 0; }

/* card grid */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.card .tag{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 16px;
}

.card h3{
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.card p{ color: var(--text-muted); margin: 0 0 18px; }

.card ul{
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}

.card ul li{
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  color: var(--text);
}

.card ul li::before{
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
  flex: none;
}

/* strip / value props on home */
.strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.strip .item{
  background: var(--bg);
  padding: 32px 28px;
}

.strip .item .num{
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: .8rem;
  display: block;
  margin-bottom: 10px;
}

.strip .item h4{
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.strip .item p{ margin: 0; color: var(--text-muted); font-size: .92rem; }

/* contact page */
.contact-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 48px;
  max-width: 620px;
}

.contact-row{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-row:first-of-type{ border-top: none; padding-top: 0; }

.contact-row .k{
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  width: 90px;
  flex: none;
}

.contact-row .v{
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text);
}

.contact-row a.v:hover{ color: var(--accent); }

.status-line{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 28px;
}

.status-line .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: #35d68a;
  box-shadow: 0 0 0 4px #35d68a2b;
}

/* ---------------- Footer ---------------- */
footer.site{
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
}

.footer-row a:hover{ color: var(--accent); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; padding: 56px 0 48px; }
  .topology{ max-width: 320px; margin: 0 auto; }
  .grid-2{ grid-template-columns: 1fr; }
  .strip{ grid-template-columns: 1fr; }
  nav.menu{ display: none; }
  nav.menu.open{
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  nav.menu.open ul{ flex-direction: column; padding: 12px 32px 20px; gap: 2px; }
  .nav-toggle{ display: block; }
  .contact-card{ padding: 30px; }
}
