/* ============================================
   TechTek LLC - Corporate Site v2
   Aesthetic: Industrial / Utility
   ============================================ */

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

/* ---------- Custom Properties ---------- */
:root {
  /* Base — warm paper */
  --bg: #f5f4f0;
  --bg-surface: #ffffff;
  --bg-muted: #eceae4;

  /* Text — high contrast */
  --text-heading: #111111;
  --text-primary: #3a3a3a;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;

  /* Accent */
  --accent: #e8590c;
  --accent-hover: #cc4d0a;
  --accent-subtle: rgba(232, 89, 12, 0.06);

  /* Structure */
  --border: #cccbc5;
  --border-light: #dddcd7;
  --radius: 4px;

  /* Fonts */
  --font-heading: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --max-width: 1080px;
  --header-h: 56px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background:
    radial-gradient(ellipse 600px 600px at 80% 8%, rgba(232, 89, 12, 0.08), transparent),
    radial-gradient(ellipse 500px 500px at 5% 70%, rgba(245, 166, 35, 0.06), transparent),
    radial-gradient(ellipse 400px 400px at 50% 40%, rgba(232, 89, 12, 0.04), transparent),
    var(--bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background drift */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle 400px at 70% 20%, rgba(232, 89, 12, 0.05), transparent),
    radial-gradient(circle 350px at 20% 60%, rgba(245, 166, 35, 0.04), transparent);
  animation: bg-drift 25s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(40px, -30px) rotate(3deg); }
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

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

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(232, 89, 12, 0.15);
  color: var(--text-heading);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--bg-muted);
}

/* ---------- Section Head (01 ──── About) ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.section-rule {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.section-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(245, 244, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

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

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hero-stack span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-stack-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* Floating tech logos */
.hero-logos-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-logo {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(245, 244, 240, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: float-drift var(--dur) ease-in-out var(--delay) infinite;
}

.float-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.5;
}

@keyframes float-drift {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
  8%   { opacity: 1; transform: translate(var(--x1), var(--y1)) rotate(var(--r1)) scale(1); }
  25%  { transform: translate(var(--x2), var(--y2)) rotate(var(--r2)) scale(var(--s1)); }
  50%  { transform: translate(var(--x3), var(--y3)) rotate(var(--r3)) scale(1); }
  75%  { transform: translate(var(--x4), var(--y4)) rotate(var(--r4)) scale(var(--s2)); }
  92%  { opacity: 1; transform: translate(var(--x1), var(--y1)) rotate(var(--r1)) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
}

/* Ambient glow */
.hero-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-ambient.a1 {
  width: 500px;
  height: 500px;
  background: rgba(232, 89, 12, 0.06);
  top: 10%;
  right: 10%;
  animation: amb-1 12s ease-in-out infinite;
}

.hero-ambient.a2 {
  width: 400px;
  height: 400px;
  background: rgba(245, 166, 35, 0.05);
  bottom: 5%;
  left: 5%;
  animation: amb-2 15s ease-in-out infinite;
}

@keyframes amb-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

@keyframes amb-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

/* Terminal */
.hero-terminal {
  background: #0d1117;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2a2f36;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6e7681;
  margin-left: 6px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: #e6edf3;
}

.terminal-body .prompt { color: #7ee787; }
.terminal-body .cmd { color: #e6edf3; }
.terminal-body .comment { color: #6e7681; }
.terminal-body .success { color: #3fb950; }
.terminal-body .accent-t { color: #f5a623; }
.terminal-body .resource { color: #79c0ff; }

.terminal-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #e6edf3;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 11px 0;
  transition: opacity 0.2s ease;
}

.btn-ghost:hover {
  opacity: 0.7;
}

.btn-arrow::after {
  content: " \2192";
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Blog Grid (list page) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.blog-grid .blog-card {
  grid-template-columns: 140px 1fr;
}

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

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-list {
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  min-width: 56px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.service-list {
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-desc {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.service-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Updates (News + Blog) ---------- */
.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.updates-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* News */
.news-list {
  border-top: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item:hover {
  padding-left: 8px;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  white-space: nowrap;
}

.news-title-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-heading);
}

.news-title-text a {
  color: inherit;
  transition: color 0.2s ease;
}

.news-item:hover .news-title-text a {
  color: var(--accent);
}

/* Blog cards (horizontal) */
.blog-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s ease;
  margin-bottom: 12px;
}

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

.blog-card-thumb {
  width: 120px;
  height: 100%;
  min-height: 100px;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
}

.blog-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.horse-runner {
  position: absolute;
  bottom: 12px;
  right: -140px;
  opacity: 0;
  pointer-events: none;
}

.horse-runner.gallop {
  opacity: 1;
  animation: horseRun 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes horseRun {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-100vw - 280px));
    opacity: 0;
  }
}

.cta-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* ---------- Animations ---------- */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger.visible > * {
  animation: reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger > * {
  opacity: 0;
}

.stagger.visible > *:nth-child(1) { animation-delay: 0s; }
.stagger.visible > *:nth-child(2) { animation-delay: 0.06s; }
.stagger.visible > *:nth-child(3) { animation-delay: 0.12s; }
.stagger.visible > *:nth-child(4) { animation-delay: 0.18s; }
.stagger.visible > *:nth-child(5) { animation-delay: 0.24s; }
.stagger.visible > *:nth-child(6) { animation-delay: 0.30s; }

/* ---------- Page Header (Sub Pages) ---------- */
.page-header {
  padding: calc(var(--header-h) + 56px) 0 48px;
}

.page-header .section-heading {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Company Table ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.company-table th {
  font-weight: 500;
  color: var(--text-heading);
  width: 160px;
  vertical-align: top;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.company-table td {
  color: var(--text-primary);
}

/* ---------- Tech Stack ---------- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tech-category {
  margin-bottom: 24px;
}

.tech-category-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 0.92rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.contact-detail .label {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-heading);
  min-width: 80px;
  font-size: 0.8rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group .required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 89, 12, 0.08);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- Blog Post ---------- */
.post-header {
  padding: calc(var(--header-h) + 60px) 0 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-content h2 {
  font-size: 1.3rem;
  margin: 48px 0 16px;
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 32px 0 12px;
}

.post-content p {
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.9;
}

.post-content pre {
  background: #0d1117;
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e6edf3;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content ul,
.post-content ol {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--text-primary);
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--accent-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-primary);
}

/* ---------- Post Hero Image ---------- */
.post-hero-img {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Flow Steps ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.flow-step {
  padding: 24px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.flow-step-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.flow-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.flow-step-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- Service Detail (service.html) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.service-detail-text {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---------- Help Card ---------- */
.help-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.help-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.help-list li {
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.help-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.pagination .current {
  background: var(--text-heading);
  color: var(--bg);
  border-color: var(--text-heading);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 244, 240, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

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

  .nav-list a {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .updates-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-item {
    grid-template-columns: auto auto 1fr;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 6px;
  }

  .company-table th,
  .company-table td {
    display: block;
    padding: 4px 0;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .company-table td {
    padding-top: 2px;
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-thumb {
    width: 100%;
    height: 140px;
  }

  .blog-card-body {
    padding: 12px 16px 16px;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
