﻿/*
Theme Name: Diodos
Theme URI: https://diodos-tech.com/
Author: DataDiode IKE
Author URI: https://diodos-tech.com/
Description: A focused English marketing theme for Diodos, powered by OTDataMule.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: otdatamule
*/

:root {
  --otm-bg: #ffffff;
  --otm-ink: #16202a;
  --otm-muted: #5b6875;
  --otm-soft: #f4f8fb;
  --otm-soft-2: #eaf4fb;
  --otm-line: #d8e6ee;
  --otm-cyan: #00aee8;
  --otm-blue: #1267d8;
  --otm-deep: #243241;
  --otm-green: #18a779;
  --otm-shadow: 0 22px 60px rgba(18, 103, 216, 0.13);
  --otm-radius: 8px;
  --otm-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--otm-bg);
  color: var(--otm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.otm-page {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 248, 251, 0.9) 0, rgba(255, 255, 255, 0) 520px),
    #ffffff;
}

.otm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(216, 230, 238, 0.8);
  backdrop-filter: blur(16px);
}

.otm-nav {
  width: min(var(--otm-max), calc(100vw - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.otm-brand {
  display: inline-flex;
  align-items: center;
  color: var(--otm-ink);
  text-decoration: none;
}

.otm-wordmark-wrap {
  display: grid;
  gap: 2px;
  align-items: center;
}

.otm-wordmark-img {
  display: block;
  width: 210px;
  max-width: 38vw;
  height: auto;
}

.otm-mark {
  width: 58px;
  height: 44px;
  display: inline-grid;
  place-items: center;
}

.otm-mark img {
  display: block;
  width: 58px;
  height: auto;
}

.otm-brand-text {
  display: grid;
  line-height: 1.08;
}

.otm-logo-word {
  color: var(--otm-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.otm-product {
  color: var(--otm-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.otm-powered-line {
  display: inline-block;
  margin-top: 14px;
  color: var(--otm-blue);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.otm-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #344657;
  font-size: 14px;
  font-weight: 720;
}

.otm-links a {
  text-decoration: none;
}

.otm-links a:hover {
  color: var(--otm-blue);
}

.otm-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--otm-radius);
  padding: 0 18px;
  background: var(--otm-ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(22, 32, 42, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.otm-button:hover {
  transform: translateY(-2px);
  background: #243241;
  box-shadow: 0 18px 36px rgba(22, 32, 42, 0.2);
}

.otm-button.secondary {
  background: #ffffff;
  color: var(--otm-ink);
  border-color: var(--otm-line);
  box-shadow: none;
}

.otm-section {
  width: min(var(--otm-max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 94px 0;
}

.otm-hero {
  width: min(var(--otm-max), calc(100vw - 40px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 82px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 56px;
}

.otm-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.otm-hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--otm-muted);
  font-size: 21px;
  line-height: 1.48;
}

.otm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.otm-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.otm-proof-item {
  padding: 18px 0;
  border-top: 1px solid var(--otm-line);
}

.otm-proof-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.otm-proof-item span {
  display: block;
  margin-top: 4px;
  color: var(--otm-muted);
  font-size: 13px;
  line-height: 1.35;
}

.otm-product-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.otm-fiber-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--otm-cyan), var(--otm-blue), transparent);
  box-shadow: 0 0 28px rgba(0, 174, 232, 0.45);
}

.otm-fiber-line::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--otm-blue);
  border-right: 3px solid var(--otm-blue);
  transform: translateY(-50%) rotate(45deg);
}

.otm-appliance {
  position: relative;
  width: min(100%, 530px);
  min-height: 350px;
}

.otm-node {
  position: absolute;
  width: 220px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid #cbdce7;
  border-radius: var(--otm-radius);
  background:
    linear-gradient(180deg, #ffffff, #f5f9fc);
  box-shadow: var(--otm-shadow);
}

.otm-node.south {
  left: 0;
  bottom: 42px;
}

.otm-node.north {
  right: 0;
  top: 42px;
}

.otm-node small {
  display: block;
  color: var(--otm-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.otm-node strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.otm-node span {
  display: block;
  margin-top: 12px;
  color: var(--otm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.otm-ports {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.otm-port {
  width: 28px;
  height: 12px;
  border-radius: 3px;
  background: #d9e5ed;
  border: 1px solid #bfd0dc;
}

.otm-diode-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--otm-line);
  box-shadow: 0 20px 44px rgba(0, 174, 232, 0.18);
  transform: translate(-50%, -50%);
}

.otm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}

.otm-section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.otm-section-head p {
  margin: 0;
  color: var(--otm-muted);
  font-size: 18px;
  line-height: 1.55;
}

.otm-band {
  background: var(--otm-soft);
}

.otm-architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.otm-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.otm-copy p {
  margin: 22px 0 0;
  color: var(--otm-muted);
  font-size: 18px;
}

.otm-checks {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.otm-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  color: #344657;
}

.otm-check::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--otm-cyan), var(--otm-blue));
  box-shadow: 0 8px 18px rgba(18, 103, 216, 0.18);
}

.otm-diagram {
  padding: 26px;
  border: 1px solid var(--otm-line);
  border-radius: var(--otm-radius);
  background: #ffffff;
  box-shadow: var(--otm-shadow);
}

.otm-diagram-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 18px;
  align-items: center;
}

.otm-diagram-box {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--otm-line);
  border-radius: var(--otm-radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.otm-diagram-box strong {
  display: block;
  font-size: 24px;
}

.otm-diagram-box span {
  display: block;
  margin-top: 8px;
  color: var(--otm-muted);
}

.otm-arrow {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--otm-cyan), var(--otm-blue));
}

.otm-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 17px;
  height: 17px;
  border-top: 4px solid var(--otm-blue);
  border-right: 4px solid var(--otm-blue);
  transform: translateY(-50%) rotate(45deg);
}

.otm-no-return {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--otm-radius);
  background: #f1f8fc;
  color: #315061;
  font-weight: 750;
  text-align: center;
}

.otm-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.otm-benefit {
  padding: 28px;
  border: 1px solid var(--otm-line);
  border-radius: var(--otm-radius);
  background: #ffffff;
}

.otm-benefit h3,
.otm-model h3,
.otm-case h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.otm-benefit p,
.otm-model p,
.otm-case p {
  margin: 14px 0 0;
  color: var(--otm-muted);
}

.otm-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.otm-connection-panel {
  padding: 30px;
  border: 1px solid var(--otm-line);
  border-radius: var(--otm-radius);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(22, 32, 42, 0.06);
}

.otm-connection-panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.otm-connection-panel p {
  margin: 12px 0 0;
  color: var(--otm-muted);
}

.otm-connection-groups {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.otm-connection-group strong {
  display: block;
  margin-bottom: 10px;
  color: #344657;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otm-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.otm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe1ec;
  border-radius: 999px;
  background: #f7fbfe;
  color: #243241;
  font-size: 13px;
  font-weight: 720;
}

.otm-models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.otm-model {
  position: relative;
  padding: 34px;
  border: 1px solid var(--otm-line);
  border-radius: var(--otm-radius);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(22, 32, 42, 0.06);
}

.otm-model.featured {
  border-color: rgba(0, 174, 232, 0.45);
  box-shadow: var(--otm-shadow);
}

.otm-capacity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0 22px;
}

.otm-capacity strong {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.otm-capacity span {
  color: var(--otm-muted);
  font-weight: 750;
}

.otm-model ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #344657;
  list-style: none;
}

.otm-model li {
  padding-left: 18px;
  position: relative;
}

.otm-model li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--otm-cyan);
}

.otm-use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.otm-case {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--otm-radius);
  background: #ffffff;
  border: 1px solid var(--otm-line);
}

.otm-final {
  padding: 76px;
  border-radius: var(--otm-radius);
  background:
    linear-gradient(135deg, rgba(0, 174, 232, 0.12), rgba(18, 103, 216, 0.06)),
    #f7fbfe;
  border: 1px solid var(--otm-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.otm-final h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.otm-final p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--otm-muted);
  font-size: 18px;
}

.otm-contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: #344657;
  font-size: 15px;
}

.otm-contact-lines a {
  color: var(--otm-blue);
  font-weight: 750;
  text-decoration: none;
}

.otm-contact-lines a:hover {
  text-decoration: underline;
}

.otm-footer {
  border-top: 1px solid var(--otm-line);
  background: #ffffff;
}

.otm-footer-inner {
  width: min(var(--otm-max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--otm-muted);
  font-size: 14px;
}

.otm-footer-inner a {
  color: var(--otm-blue);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 980px) {
  .otm-links {
    display: none;
  }

  .otm-hero,
  .otm-architecture,
  .otm-section-head,
  .otm-final {
    grid-template-columns: 1fr;
  }

  .otm-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .otm-product-visual {
    min-height: 430px;
  }

  .otm-benefits,
  .otm-use-cases,
  .otm-connections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .otm-nav {
    width: min(var(--otm-max), calc(100vw - 28px));
    min-height: 78px;
  }

  .otm-wordmark-img {
    width: 160px;
    max-width: 52vw;
  }

  .otm-section,
  .otm-hero,
  .otm-footer-inner {
    width: min(var(--otm-max), calc(100vw - 28px));
  }

  .otm-section {
    padding: 64px 0;
  }

  .otm-hero h1 {
    font-size: 46px;
  }

  .otm-hero p {
    font-size: 18px;
  }

  .otm-proof,
  .otm-models,
  .otm-diagram-row {
    grid-template-columns: 1fr;
  }

  .otm-product-visual {
    min-height: 590px;
  }

  .otm-appliance {
    min-height: 520px;
  }

  .otm-node {
    width: min(100%, 250px);
  }

  .otm-node.south {
    left: 0;
    bottom: 38px;
  }

  .otm-node.north {
    right: 0;
    top: 38px;
  }

  .otm-fiber-line {
    left: 22%;
    right: 22%;
    transform: rotate(90deg);
  }

  .otm-final {
    padding: 36px 24px;
  }

  .otm-footer-inner {
    flex-direction: column;
  }
}
