/* ── Typhoon Digital Solutions ── */
:root {
  --white: #ffffff;
  --bg: #f7f8fa;
  --text: #374151;
  --text-muted: #6b7280;
  --heading: #111827;
  --accent: #2563eb;
  --accent-h: #1d4ed8;
  --border: #e5e7eb;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 960px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-h); }
img { max-width: 100%; display: block; }

/* ==========================================================================
   HOME PAGE — Dark, clean, no cover image
   ========================================================================== */

.page-home {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #050814;
  color: #fff;
}

.home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(750px 380px at 15% 10%, rgba(37,99,235,0.22), transparent 65%),
    radial-gradient(650px 340px at 85% 90%, rgba(56,189,248,0.14), transparent 65%),
    linear-gradient(145deg, #050814 0%, #0a1024 55%, #070b1a 100%);
}

.home-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-nav {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  z-index: 2;
}
.home-nav a {
  color: rgba(255,255,255,0.72);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}
.home-nav a:hover { color: #fff; }

.home-center {
  width: min(680px, 100%);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(9, 16, 38, 0.58);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: 0 12px 42px rgba(0,0,0,0.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 28px 40px;
}

.home-logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.home-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.home-tagline {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}

.home-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.home-btn--primary {
  background: #2f6ef2;
  color: #fff;
}
.home-btn--primary:hover {
  background: #2458c7;
  color: #fff;
}
.home-btn--ghost {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.86);
}
.home-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

.home-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
a.home-link:hover { color: #fff; }
.home-link--muted {
  color: rgba(255,255,255,0.45);
  cursor: default;
}
.home-link--muted small {
  display: block;
  font-size: 0.74rem;
  margin-top: 2px;
  opacity: 0.8;
}
.home-link-sep {
  color: rgba(255,255,255,0.25);
}

.home-footer {
  position: absolute;
  bottom: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
}

@media (max-width: 560px) {
  .home-nav { gap: 20px; }
  .home-center { padding: 44px 18px 34px; border-radius: 18px; }
  .home-links { flex-direction: column; gap: 12px; }
  .home-link-sep { display: none; }
}

/* ==========================================================================
   INNER PAGES — Light, clean
   ========================================================================== */

.page-inner {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--heading);
}
.header-logo:hover { color: var(--heading); }
.header-logo-img { border-radius: 6px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.header-nav a:hover,
.header-nav a.active { color: var(--heading); }

.header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.header-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
}
.mobile-nav a.active { color: var(--heading); font-weight: 600; }

@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-toggle { display: flex; }
}

/* Inner content */
.inner-main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}
.inner-section {
  margin-bottom: 56px;
}
.inner-section--narrow {
  max-width: 640px;
}

/* Typography */
.page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.body-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.body-text:last-child { margin-bottom: 0; }
.body-text strong { color: var(--heading); font-weight: 600; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.card--muted { opacity: 0.85; }
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-link {
  font-weight: 600;
  font-size: 0.9375rem;
}
.card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* Structure diagram (about page) */
.structure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.structure-parent {
  background: var(--heading);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 16px 24px;
}
.structure-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.structure-branch {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.structure-branch:last-child { border-right: none; }
.structure-branch strong {
  font-size: 0.875rem;
  color: var(--heading);
  margin-bottom: 4px;
}
.structure-branch span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .structure-branches { grid-template-columns: 1fr; }
  .structure-branch { border-right: none; border-bottom: 1px solid var(--border); }
  .structure-branch:last-child { border-bottom: none; }
}

/* Contact */
.contact-block {
  margin-bottom: 32px;
}
.contact-email {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--heading); }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
