/* ===================================
   Wayport Landing Page Styles
   Dark institutional theme
   =================================== */

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

:root {
  --bg: #0a0b0f;
  --bg-elevated: #111318;
  --bg-card: #151820;
  --bg-card-hover: #1a1e28;
  --border: #1e2230;
  --border-light: #2a2f40;
  --text: #e8eaf0;
  --text-muted: #8b90a0;
  --text-dim: #5c6070;
  --accent: #a0b4ff;
  --accent-dim: #6880c0;
  --accent-glow: rgba(160, 180, 255, 0.08);
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --container: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 100px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 120px 0;
  }
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--white);
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}

.btn-outline:hover {
  color: var(--white);
  border-color: var(--text-muted);
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-scrolled {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 24px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-logo-img {
    height: 32px;
  }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 8px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-light) !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--bg-card-hover) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav open */
.nav-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}

.nav-open .nav-cta {
  margin-left: 0;
  margin-top: 8px;
  text-align: center;
}

/* --- Hero --- */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 200px 0 140px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hero-sub {
    font-size: 1.25rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

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

/* --- Cards (About section) --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- About section --- */
.about {
  border-top: 1px solid var(--border);
}

/* --- Services --- */
.services {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--border-light);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Compliance --- */
.compliance-inner {
  max-width: 720px;
}

.compliance h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .compliance h2 {
    font-size: 2.5rem;
  }
}

.compliance-content p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.compliance-details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compliance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

@media (min-width: 640px) {
  .compliance-item {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.compliance-item:last-child {
  border-bottom: none;
}

.compliance-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 160px;
  flex-shrink: 0;
}

.compliance-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

.compliance-value a {
  color: var(--accent);
}

.compliance-value a:hover {
  color: var(--white);
}

/* --- Contact --- */
.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-form-wrap {
  max-width: 520px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-note a {
  color: var(--accent);
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 8px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links a {
  color: var(--text-dim);
  margin-left: 6px;
}

.footer-legal-links a::before {
  content: '\00b7';
  margin-right: 6px;
}

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-reg {
  font-size: 0.75rem !important;
}

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

/* --- Subtle animations --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .card,
  .service-card,
  .compliance-inner,
  .contact-form-wrap {
    animation: fadeUp 0.6s ease both;
  }

  .card:nth-child(2) { animation-delay: 0.1s; }
  .card:nth-child(3) { animation-delay: 0.2s; }
  .service-card:nth-child(2) { animation-delay: 0.08s; }
  .service-card:nth-child(3) { animation-delay: 0.16s; }
  .service-card:nth-child(4) { animation-delay: 0.24s; }
}

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

/* --- Selection --- */
::selection {
  background: rgba(160, 180, 255, 0.2);
  color: var(--white);
}
