/* ===== ARKHOLD TECHNOLOGIES — TABBED LAYOUT ===== */

:root {
  --blue-50: #f0f6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #4a8ed4;
  --blue-600: #3b7cc4;
  --blue-700: #2d6ab4;
  --blue-800: #1e4d7b;
  --blue-900: #1a3a5c;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --bg-primary: #f0f4f8;
  --bg-alt: #e6ecf2;
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-500);
  --text-heading: var(--gray-900);
  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);
  --accent-light: rgba(74, 142, 212, 0.1);

  --max-w: 1200px;
  --header-h: 80px;
  --footer-h: 48px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== APP LAYOUT ===== */
.app {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== HEADER / NAV ===== */
.app-header {
  position: relative;
  z-index: 10;
  height: var(--header-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 244, 248, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 142, 212, 0.08);
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-heading);
}
.brand-logo { width: 38px; height: 38px; }
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}
.tab:hover {
  color: var(--text-heading);
  background: rgba(74, 142, 212, 0.06);
}
.tab.active {
  color: var(--accent);
  background: var(--accent-light);
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== BG DECOR ===== */
.bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 142, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 142, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(74, 142, 212, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== MAIN ===== */
.app-main {
  position: relative;
  flex: 1;
  z-index: 1;
  overflow: hidden;
}
.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
  overflow-y: auto;
}
.panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}
.panel-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== PANEL HEADERS ===== */
.panel-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.panel-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.panel-header h2,
.vision-content h2,
.contact-block h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.panel-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== HOME PANEL ===== */
.home-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 32px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.home-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74, 142, 212, 0.3);
}
.btn-outline {
  border: 1.5px solid var(--gray-300);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===== ABOUT — STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
.stat {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.stat:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 142, 212, 0.08);
}
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  color: var(--accent);
}
.stat-icon svg { width: 26px; height: 26px; }
.stat h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.stat p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== DOMAINS GRID ===== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.domain-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
  opacity: 0;
  transition: opacity 0.3s;
}
.domain-card:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(74, 142, 212, 0.1);
}
.domain-card:hover::before { opacity: 1; }
.domain-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 12px;
}
.domain-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.domain-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.domain-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--blue-700);
}

/* ===== VISION ===== */
.vision-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.vision-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.vision-content em { color: var(--accent); font-style: normal; font-weight: 500; }
.vision-content strong { color: var(--text-heading); }

.vision-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-orb {
  position: relative;
  width: 320px;
  height: 320px;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orb-ring-1 {
  width: 100%;
  height: 100%;
  border-color: var(--blue-200);
  border-style: dashed;
  animation: orbSpin 20s linear infinite;
}
.orb-ring-2 {
  width: 70%;
  height: 70%;
  border-color: var(--blue-300);
  border-style: dotted;
  border-width: 1.5px;
  animation: orbSpin 15s linear infinite reverse;
}
.orb-ring-3 {
  width: 45%;
  height: 45%;
  border-color: var(--blue-400);
  animation: orbSpin 10s linear infinite;
}
.orb-core {
  position: absolute;
  width: 22%;
  height: 22%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--blue-400), var(--blue-600));
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(74, 142, 212, 0.4);
}
@keyframes orbSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== CONTACT ===== */
.contact-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-block .panel-desc {
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.app-footer {
  position: relative;
  z-index: 10;
  height: var(--footer-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  border-top: 1px solid rgba(74, 142, 212, 0.06);
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-block { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .vision-orb { width: 240px; height: 240px; }
}

@media (max-width: 768px) {
  html, body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .app-main { overflow: visible; }
  .panel {
    position: relative;
    inset: auto;
    display: none;
    padding: 32px 24px;
  }
  .panel.active { display: flex; }
  .app-header {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
    gap: 12px;
  }
  .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .tab { padding: 8px 14px; font-size: 0.85rem; }
  .stats-row { grid-template-columns: 1fr; gap: 16px; }
  .domains-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .btn { justify-content: center; }
}
