/* OnlyNet Portal — Design tokens from portal.pen */
:root {
  --onlynet-blue: #2451FF;
  --onlynet-blue-dark: #1738D7;
  --onlynet-blue-soft: #EAF0FF;
  --onlynet-ink: #111827;
  --onlynet-muted: #5B6475;
  --onlynet-line: #E6EAF2;
  --onlynet-bg: #FFFFFF;
  --onlynet-panel: #F6F8FC;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1248px;
  --section-padding: 96px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--onlynet-ink);
  background: var(--onlynet-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--onlynet-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--onlynet-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--onlynet-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--onlynet-blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--onlynet-line);
  border-radius: 9999px;
  padding: 6px 10px;
  background: #fff;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--onlynet-muted);
  padding: 3px 6px;
  border-radius: 9999px;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--onlynet-blue); }
.lang-btn.active {
  background: var(--onlynet-blue-soft);
  color: var(--onlynet-blue);
}

.lang-sep { color: var(--onlynet-line); font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--onlynet-blue);
  color: #fff;
  border-color: var(--onlynet-blue);
}
.btn-primary:hover { background: var(--onlynet-blue-dark); }

.btn-outline {
  background: #fff;
  color: var(--onlynet-ink);
  border-color: var(--onlynet-line);
}
.btn-outline:hover { border-color: var(--onlynet-blue); color: var(--onlynet-blue); }

.btn-lg { padding: 14px 24px; font-size: 16px; font-weight: 800; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--onlynet-ink);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background: #fff;
}

.hero-glow {
  position: absolute;
  right: 5%;
  top: 60px;
  width: 360px;
  height: 360px;
  background: #2451FF12;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--onlynet-line);
  border-radius: 9999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge svg { width: 16px; height: 16px; color: var(--onlynet-blue); }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 20px;
  color: var(--onlynet-muted);
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--onlynet-line);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.platform-tag:hover {
  border-color: var(--onlynet-blue);
  color: var(--onlynet-blue);
  box-shadow: 0 4px 16px rgba(36, 81, 255, 0.12);
}
.platform-tag svg { width: 16px; height: 16px; color: var(--onlynet-blue); flex-shrink: 0; }
.platform-tag:hover svg { color: var(--onlynet-blue); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--onlynet-line);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--onlynet-blue);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--onlynet-muted);
  margin-top: 6px;
}

/* Hero mockup */
.hero-mockup {
  position: relative;
}

.mockup-card {
  background: #fff;
  border: 1px solid var(--onlynet-line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--onlynet-line);
}

.mockup-title { font-size: 15px; font-weight: 700; }

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--onlynet-blue-soft);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--onlynet-blue);
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}

.mockup-sidebar {
  background: var(--onlynet-panel);
  padding: 16px 12px;
  border-right: 1px solid var(--onlynet-line);
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--onlynet-muted);
  margin-bottom: 4px;
}
.mockup-nav-item.active {
  background: var(--onlynet-blue-soft);
  color: var(--onlynet-blue);
}
.mockup-nav-item svg { width: 14px; height: 14px; }

.mockup-main { padding: 20px; }

.mockup-line-card {
  background: var(--onlynet-blue);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.mockup-line-card .label { font-size: 12px; opacity: 0.8; }
.mockup-line-card .name { font-size: 18px; font-weight: 800; margin: 4px 0; }
.mockup-line-card .meta { font-size: 12px; opacity: 0.75; }

.mockup-protocols h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--onlynet-muted);
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.protocol-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--onlynet-line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.protocol-chip .status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: var(--onlynet-blue-soft);
  color: var(--onlynet-blue);
  font-weight: 700;
}

.mockup-features {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mockup-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--onlynet-muted);
  padding: 6px 10px;
  border: 1px solid var(--onlynet-line);
  border-radius: 9999px;
}
.mockup-feature svg { width: 12px; height: 12px; color: var(--onlynet-blue); }

/* ── Sections ── */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--onlynet-muted);
  line-height: 1.55;
}

/* Protocol cards */
.protocols-section { background: var(--onlynet-panel); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--onlynet-line);
  border-radius: 16px;
  padding: 24px;
  min-height: 190px;
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--onlynet-blue-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--onlynet-blue); }

.card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--onlynet-muted);
  line-height: 1.45;
}

.cards-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 18px auto 0;
}

/* Security section */
.security-section {
  background: var(--onlynet-blue);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.security-glow {
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  width: 256px;
  height: 256px;
  background: #FFFFFF1A;
  border-radius: 50%;
  pointer-events: none;
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.security-tag {
  display: inline-block;
  padding: 8px 12px;
  background: var(--onlynet-blue-soft);
  color: var(--onlynet-blue);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.security-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
}

.security-content p {
  font-size: 18px;
  color: #DDE7FF;
  line-height: 1.6;
  margin-bottom: 24px;
}

.security-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.security-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.security-checklist svg { width: 18px; height: 18px; flex-shrink: 0; }

.security-diagram {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.1);
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-center {
  width: 142px;
  height: 142px;
  background: var(--onlynet-blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  z-index: 2;
}
.diagram-center svg { width: 32px; height: 32px; margin-bottom: 4px; }

.diagram-orbit {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.orbit-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--onlynet-blue-soft);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--onlynet-ink);
  white-space: nowrap;
}
.orbit-chip svg { width: 16px; height: 16px; color: var(--onlynet-blue); }

.orbit-top { top: 20px; left: 50%; transform: translateX(-50%); }
.orbit-right { right: 10px; top: 50%; transform: translateY(-50%); }
.orbit-bottom { bottom: 20px; left: 50%; transform: translateX(-50%); }
.orbit-left { left: 10px; top: 50%; transform: translateY(-50%); }

/* Download section */
.download-section { background: #fff; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.download-card {
  border: 1px solid var(--onlynet-line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.download-card:hover {
  border-color: var(--onlynet-blue);
  box-shadow: 0 8px 32px rgba(36,81,255,0.1);
}

.download-icon {
  width: 56px;
  height: 56px;
  background: var(--onlynet-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.download-icon svg { width: 28px; height: 28px; color: #fff; }

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.download-card .sub {
  font-size: 14px;
  color: var(--onlynet-muted);
  margin-bottom: 20px;
}

/* SEO / GEO section */
.seo-section {
  background: var(--onlynet-panel);
}

.seo-clients-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--onlynet-muted);
  margin-bottom: 14px;
}

.seo-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.seo-client-tag {
  padding: 8px 16px;
  border: 1px solid var(--onlynet-line);
  border-radius: 9999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--onlynet-ink);
}

.seo-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.seo-topic-card {
  background: #fff;
  border: 1px solid var(--onlynet-line);
  border-radius: 16px;
  padding: 24px;
}

.seo-topic-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--onlynet-ink);
}

.seo-topic-card p {
  font-size: 15px;
  color: var(--onlynet-muted);
  line-height: 1.6;
  margin: 0;
}

.seo-topic-card:last-child {
  grid-column: 1 / -1;
  max-width: 540px;
  justify-self: center;
  width: 100%;
}

/* FAQ section (SEO / GEO) */
.faq-section {
  background: #fff;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--onlynet-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--onlynet-ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: ' +';
  color: var(--onlynet-blue);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: ' −';
}

.faq-item summary:hover { color: var(--onlynet-blue); }

.faq-answer {
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--onlynet-muted);
  line-height: 1.65;
  margin: 0;
}

/* CTA section */
.cta-section {
  background: var(--onlynet-panel);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--onlynet-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 900;
}

.footer-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--onlynet-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--onlynet-muted);
  font-weight: 600;
}
.footer-links a:hover { color: var(--onlynet-blue); }

/* ── Legal pages ── */
.legal-page {
  padding: 48px 0 80px;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.legal-content .intro {
  font-size: 16px;
  color: var(--onlynet-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--onlynet-ink);
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  color: var(--onlynet-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ol li { margin-bottom: 20px; }
.legal-content ol li strong {
  color: var(--onlynet-ink);
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}
.legal-content ol li span {
  display: block;
  font-size: 16px;
  color: var(--onlynet-muted);
  line-height: 1.65;
}

.legal-content a {
  color: var(--onlynet-blue);
  text-decoration: underline;
}

.legal-updated {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--onlynet-line);
  font-size: 14px;
  color: var(--onlynet-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner,
  .security-inner { grid-template-columns: 1fr; }
  .hero-mockup { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--onlynet-line);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cards-grid,
  .cards-row-2,
  .download-grid { grid-template-columns: 1fr; }
  .seo-topics { grid-template-columns: 1fr; }
  .seo-topic-card:last-child { max-width: none; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .security-diagram { min-height: 300px; padding: 24px; }
  .orbit-chip { font-size: 11px; padding: 8px 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
