/* ============================================================
   RKODA Technologies — Design System & Layout
   ============================================================ */

:root {
  --navy: #07142E;
  --navy-dark: #030A18;
  --gold: #F5B82E;
  --gold-light: #FFD96A;
  --cyan: #57D8FF;
  --white: #FFFFFF;
  --grey: #CBD5E1;
  --grey-dark: #94A3B8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  --container-max: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-dark);
  color: var(--grey);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 20%, rgba(87, 216, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 90% 80%, rgba(245, 184, 46, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--gold-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(87, 216, 255, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-full {
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--gold);
  flex-shrink: 0;
}

.logo-letter {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 10, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(87, 216, 255, 0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover,
.nav-brand:focus-visible {
  color: var(--white);
}

.nav-brand-text {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(87, 216, 255, 0.08);
}

.nav-cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    background: var(--navy-dark);
    border-left: 1px solid rgba(87, 216, 255, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition);
    gap: 1.5rem;
    overflow-y: auto;
  }

  .nav-open .nav-menu {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

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

  .nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 4rem 0 5rem;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
}

/* Tech Illustration */
.hero-illustration {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tech-illustration {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(7, 20, 46, 0.9) 0%, rgba(3, 10, 24, 0.95) 100%);
  border: 1px solid rgba(87, 216, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(245, 184, 46, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.35);
}

.tech-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 85% 15%, rgba(87, 216, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(245, 184, 46, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.code-window {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(3, 10, 24, 0.95);
  border: 1px solid rgba(87, 216, 255, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  background: rgba(7, 20, 46, 0.95);
  border-bottom: 1px solid rgba(87, 216, 255, 0.2);
}

.code-window-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--grey-dark);
  font-family: var(--font-mono);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.code-lines {
  padding: 0.85rem 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  line-height: 1.75;
}

.code-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-num {
  display: inline-block;
  width: 1.4rem;
  margin-right: 0.5rem;
  color: rgba(148, 163, 184, 0.45);
  user-select: none;
}

.code-keyword { color: var(--cyan); }
.code-class { color: var(--gold-light); }
.code-fn { color: var(--gold); }
.code-string { color: #7DD3A8; }

.system-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.system-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  background: rgba(7, 20, 46, 0.85);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: var(--radius);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 84px;
  transition: border-color var(--transition), transform var(--transition);
}

.system-box:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .hero-illustration {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    gap: 3.5rem;
  }

  .tech-illustration {
    max-width: 460px;
    padding: 1.5rem;
  }
}

/* ============================================================
   About
   ============================================================ */

.about {
  background: rgba(7, 20, 46, 0.5);
  border-top: 1px solid rgba(87, 216, 255, 0.08);
  border-bottom: 1px solid rgba(87, 216, 255, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
}

.about-image img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 184, 46, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  object-fit: cover;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(3, 10, 24, 0.6);
  border: 1px solid rgba(87, 216, 255, 0.15);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.about-card:hover {
  border-color: rgba(245, 184, 46, 0.35);
  transform: translateY(-2px);
}

.about-card-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.about-card h3 {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Services
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  background: rgba(7, 20, 46, 0.6);
  border: 1px solid rgba(87, 216, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(245, 184, 46, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--grey);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   Domain Expertise — PTC / Railroad
   ============================================================ */

.domain {
  border-bottom: 1px solid rgba(87, 216, 255, 0.08);
}

.domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.domain-card {
  padding: 1.75rem;
  background: rgba(7, 20, 46, 0.6);
  border: 1px solid rgba(87, 216, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.domain-card:hover {
  border-color: rgba(245, 184, 46, 0.3);
  transform: translateY(-2px);
}

.domain-card h3 {
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.domain-card p {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.domain-card p:last-child {
  margin-bottom: 0;
}

.domain-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.domain-list li {
  font-size: 0.95rem;
  color: var(--grey);
  padding-left: 0.85rem;
  border-left: 2px solid rgba(87, 216, 255, 0.35);
}

.domain-list strong {
  color: var(--cyan);
}

@media (min-width: 768px) {
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Founder
   ============================================================ */

.founder-content {
  max-width: 760px;
  margin: 0 auto;
}

.founder-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}

.founder-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.founder-info p {
  font-size: 1.05rem;
}

.founder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
}

.founder-disclaimer {
  font-size: 0.8rem;
  color: var(--grey-dark);
  font-style: italic;
  border-left: 3px solid rgba(87, 216, 255, 0.3);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* ============================================================
   Why Choose Us
   ============================================================ */

.why-us {
  background: rgba(7, 20, 46, 0.5);
  border-top: 1px solid rgba(87, 216, 255, 0.08);
  border-bottom: 1px solid rgba(87, 216, 255, 0.08);
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(3, 10, 24, 0.4);
  border: 1px solid rgba(87, 216, 255, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--grey);
}

.why-item::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: rgba(245, 184, 46, 0.15);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Contact
   ============================================================ */

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(7, 20, 46, 0.6);
  border: 1px solid rgba(87, 216, 255, 0.15);
  border-radius: var(--radius-lg);
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.contact-item a,
.contact-item span {
  font-size: 1.05rem;
  color: var(--grey);
}

.contact-item a {
  color: var(--cyan);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--grey-dark);
  margin: 0;
}

@media (min-width: 768px) {
  .contact-panel {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(87, 216, 255, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--grey);
  font-size: 0.95rem;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--grey);
}

.footer-contact strong {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(87, 216, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}

.footer-legal {
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 0.75rem !important;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Section Reveal Animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
