@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #f97316;
  --accent-hover: #ea6c0a;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --success: #22c55e;
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Layout ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 640px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0a0a0f;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ========== Navigation ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.nav-brand span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links .btn-primary {
  color: #ffffff;
}

.nav-links .btn-primary:hover {
  color: #ffffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: relative;
    z-index: 10000;
  }

  .nav-brand {
    position: relative;
    z-index: 10000;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

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

  .nav-links a {
    color: #ffffff;
    font-size: 1.5rem;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========== Hero ========== */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Product Cards (Home) ========== */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
}

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

.product-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.product-card .price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.product-card .price span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ========== How It Works Steps ========== */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 3rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
}

/* ========== Included Section ========== */
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.included-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.included-item .check {
  color: var(--success);
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.included-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.included-item p {
  font-size: 0.85rem;
}

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

.about-content {
  max-width: 640px;
}

/* ========== Services Page ========== */
.service-section {
  border-bottom: 1px solid var(--border);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.service-intro h2 {
  margin-bottom: 1rem;
}

.service-intro p {
  font-size: 1.05rem;
}

/* Pricing Tables */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.pricing-card.recommended {
  border-color: var(--accent);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.pricing-card .tier-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-card .tier-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-card .tier-price-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-card .features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card .features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.pricing-card .features li:last-child {
  border-bottom: none;
}

.pricing-card .features li .check {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* Managed Care Card */
.managed-care {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 640px) {
  .managed-care {
    grid-template-columns: 1fr;
  }
}

.managed-care h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.managed-care .mc-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.managed-care .mc-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.managed-care .mc-annual {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.managed-care .mc-save {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.managed-care ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}

@media (max-width: 640px) {
  .managed-care ul {
    grid-template-columns: 1fr;
  }
}

.managed-care ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.managed-care ul li::before {
  content: '+ ';
  color: var(--accent);
  font-family: var(--font-heading);
}

.mc-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  align-self: center;
  max-width: 280px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .mc-note {
    max-width: none;
  }
}

.mc-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: center;
}

@media (max-width: 640px) {
  .mc-buttons {
    align-self: stretch;
  }
  .mc-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========== Architecture Diagram ========== */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 3rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}

.arch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 180px;
}

.arch-box.internet {
  border-color: var(--text-secondary);
}

.arch-box.nginx {
  border-color: var(--accent);
}

.arch-box.app {
  border-color: var(--success);
}

.arch-box.data {
  border-color: #8b5cf6;
}

.arch-box .arch-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.arch-box .arch-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.arch-box.nginx .arch-name { color: var(--accent); }
.arch-box.app .arch-name { color: var(--success); }
.arch-box.data .arch-name { color: #8b5cf6; }

.arch-box .arch-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.arch-arrow {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.arch-arrow .arrow-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .arch-diagram {
    flex-direction: column;
    gap: 0;
  }
  .arch-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

/* ========== Requirements Section ========== */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.requirement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.requirement-card h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.requirement-card p {
  font-size: 0.85rem;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.faq-answer {
  font-size: 0.95rem;
}

/* ========== Contact Form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.response-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.response-note p {
  font-size: 0.9rem;
}

.response-note strong {
  color: var(--text);
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
}

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

.footer p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

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

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== Page Header (inner pages) ========== */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 600px;
}

/* ========== Blog ========== */
.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s;
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--accent);
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-read-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent);
}

/* Blog Post */
.blog-post {
  padding: 4rem 0 2rem;
}

.blog-post-header {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.blog-back {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.blog-back:hover {
  color: var(--accent);
}

.blog-post-body {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-post-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.blog-post-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-body strong {
  color: var(--text);
}

.blog-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-post-body th,
.blog-post-body td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-body th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--surface);
}

.blog-post-body td {
  color: var(--text-secondary);
}

.blog-post-body td strong {
  color: var(--text);
}

.blog-post-body .btn {
  margin-top: 1rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

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

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

  .step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
