* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0a0f1f;
  --surface: rgba(15, 25, 45, 0.7);
  --surface-solid: #0f192d;
  --surface-border: rgba(196, 154, 95, 0.25); /* Tinted with Gold */
  --text-main: #f0f4ff;
  --text-muted: #a0b3d9;
  --text-dim: #64748b;

  /* Master Brand Accent */
  --accent: #C49A5F; /* Metallic Gold */
  
  /* 7 Sub-Brand Colors */
  --plate-labs: #1B365D;       /* Deep Navy */
  --plate-marketplace: #386641; /* Forest Green */
  --plate-cloud: #3B82F6;       /* Bright Cyan */
  --plate-ai: #10B981;          /* Emerald Green */
  --plate-social: #B91C1C;      /* Crimson Red */
  --plate-craft: #D68B45;       /* Warm Amber */
  --plate-studio: #701A75;      /* Deep Purple */

  --radius-xl: 28px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

html[data-theme="light"] {
  --bg: #f8fafd;
  --bg-soft: #f0f4fa;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --surface-border: rgba(196, 154, 95, 0.2);
  --text-main: #0b2b44;
  --text-muted: #2c4e6e;
  --text-dim: #6c86a3;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  transition: background 0.35s ease, color 0.25s ease;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(196, 154, 95, 0.05), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(196, 154, 95, 0.08), transparent 55%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 12px; }

/* ===== PREHEADER ===== */
.preheader {
  background: rgba(196, 154, 95, 0.08); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  z-index: 150;
  position: relative;
}
.preheader-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preheader-left i, .preheader-left span { display: inline-flex; align-items: center; gap: 6px; }
.preheader-cta {
  background: rgba(196, 154, 95, 0.15);
  padding: 5px 14px;
  border-radius: 40px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 0.5px solid var(--surface-border);
}
.preheader-cta:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.preheader-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 8px;
  border-radius: 40px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preheader-close:hover { color: var(--accent); transform: scale(1.1); }

@media (max-width: 640px) {
  .preheader { flex-direction: row; padding: 10px 16px; }
  .preheader-left { flex: 1; gap: 8px; }
}

/* mobile navigation */
.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
html[data-theme="light"] .mobile-nav { background: rgba(248, 250, 253, 0.9); }

.logo-img { height: 40px; width: auto; transition: transform 0.2s var(--ease-out); }
.logo-img:hover { transform: scale(1.02); }

.menu-toggle { display: flex; align-items: center; }
#menu-checkbox { display: none; }
.hamburger { display: flex; flex-direction: column; gap: 6px; width: 32px; cursor: pointer; z-index: 210; }
.hamburger span {
  display: block; height: 2px; background: var(--accent); border-radius: 4px; transition: 0.25s var(--ease-out);
}
#menu-checkbox:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
#menu-checkbox:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
#menu-checkbox:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--surface-solid); backdrop-filter: blur(20px);
  z-index: 190; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.96); }
#menu-checkbox:checked ~ .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: var(--text-main); text-decoration: none; font-size: 1.8rem; font-weight: 500;
  padding: 14px 28px; border-radius: 60px; width: 80%; text-align: center;
}
.mobile-menu a:hover { background: var(--accent); color: white; }
.mobile-menu .theme-toggle { margin-top: 32px; background: rgba(255,255,255,0.08); border: 1px solid var(--surface-border); }

.desktop-sidebar { display: none; }
.main-content { padding: 48px 0 80px; }

/* hero */
.hero { margin-bottom: 90px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(196, 154, 95, 0.1); backdrop-filter: blur(4px);
  padding: 6px 16px 6px 12px; border-radius: 80px; font-size: 0.75rem; font-weight: 500;
  color: var(--accent); margin-bottom: 28px; border: 0.5px solid var(--surface-border);
}
.pulse-dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100%{ opacity: 0.6; transform: scale(0.9); } 50%{ opacity: 1; transform: scale(1.2); } }

h1 { font-size: clamp(2.6rem, 10vw, 5.2rem); line-height: 1.1; color: var(--text-main); margin-bottom: 24px; max-width: 1000px; }
.hero-sub { font-size: clamp(1rem, 3.5vw, 1.3rem); color: var(--text-muted); max-width: 680px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); border: none; padding: 12px 32px; border-radius: 60px;
  font-weight: 600; color: white; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s var(--ease-out); box-shadow: 0 8px 20px rgba(196, 154, 95, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(196, 154, 95, 0.4); }
.btn-outline {
  background: transparent; border: 1px solid var(--surface-border); padding: 12px 28px; border-radius: 60px;
  font-weight: 500; color: var(--text-main); text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; border-bottom: 1px solid var(--surface-border); padding-bottom: 18px; }
.section-header h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 600; color: var(--accent); }

/* Services grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--surface); backdrop-filter: blur(8px);
  border: 1px solid var(--surface-border); border-radius: var(--radius-xl);
  padding: 28px; transition: all 0.35s var(--ease-spring); position: relative; overflow: hidden;
}

/* 7 Brand Plate Colors */
.card-labs { --plate-color: var(--plate-labs); --plate-glow: rgba(27, 54, 93, 0.2); }
.card-marketplace { --plate-color: var(--plate-marketplace); --plate-glow: rgba(56, 102, 65, 0.2); }
.card-cloud { --plate-color: var(--plate-cloud); --plate-glow: rgba(59, 130, 246, 0.2); }
.card-ai { --plate-color: var(--plate-ai); --plate-glow: rgba(16, 185, 129, 0.2); }
.card-social { --plate-color: var(--plate-social); --plate-glow: rgba(185, 28, 28, 0.2); }
.card-craft { --plate-color: var(--plate-craft); --plate-glow: rgba(214, 139, 69, 0.2); }
.card-studio { --plate-color: var(--plate-studio); --plate-glow: rgba(112, 26, 117, 0.2); }

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--plate-color);
  box-shadow: 0 25px 35px -15px var(--plate-glow);
}

/* New Logo Title Styling */
.brand-title-logo {
  height: 120px; /* Adjust this value to make logos larger or smaller */
  width: auto;
  margin:0px auto;
  display: block;
  transition: transform 0.3s var(--ease-out);
  transform-origin: left center;
}



.card-header { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.card-badge { font-size: 0.7rem; font-weight: 700; background: var(--plate-color); color: white; padding: 6px 16px; border-radius: 40px; text-transform: uppercase; }

/* Updated Icon behavior for SVGs */
.card-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-border); transition: all 0.2s;
}
.card-icon img {
  height: 28px;
  width: auto;
  transition: transform 0.2s;
}
.service-card:hover .card-icon {
  background: var(--plate-glow); /* Subtle glow behind SVG instead of filling solid */
  border-color: var(--plate-color);
}
.service-card:hover .card-icon img {
  transform: scale(1.1);
}

.card-title { font-size: 1.5rem; font-weight: 600; margin: 16px 0 10px; color: var(--text-main); }
.card-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 0.7rem; padding: 4px 12px; border-radius: 30px; background: rgba(255,255,255,0.03); border: 0.5px solid var(--surface-border); color: var(--text-muted); }
.subdomain-link { border-top: 1px dashed var(--surface-border); padding-top: 18px;text-align:center; }
.subdomain-link a { color: var(--plate-color); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.subdomain-link a:hover { gap: 12px; filter: brightness(1.2); }

/* Center the 7th card on Desktop */
@media (min-width: 1024px) {
  .grid-3 .service-card:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.compact-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 32px 20px; text-align: center; transition: 0.25s var(--ease-out); }
.compact-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.step-num { font-size: 2.8rem; font-weight: 700; color: var(--accent); opacity: 0.7; }
.compact-card i { font-size: 2.4rem; color: var(--accent); margin-bottom: 20px; display: inline-block; }

.mission-vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 80px; }
.mission-card, .vision-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-xl); padding: 36px; transition: transform 0.2s; }
.mission-card:hover, .vision-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cta-block { background: rgba(196, 154, 95, 0.08); border: 1px solid var(--surface-border); border-radius: var(--radius-xl); padding: 64px 32px; text-align: center; }

.footer { border-top: 1px solid var(--surface-border); padding-top: 48px; margin-top: 80px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 40px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

.social-links a { color: var(--accent); font-size: 1.3rem; margin-left: 20px; transition: 0.2s; display: inline-block; }
.social-links a:hover { opacity: 0.7; transform: translateY(-2px); }

.theme-toggle { background: rgba(255,255,255,0.05); border: 1px solid var(--surface-border); border-radius: 60px; padding: 6px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; color: var(--text-main); }
.icon-sun, .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: inline-block; }
html[data-theme="dark"] .icon-moon { display: inline-block; }

.scroll-circle { position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px; cursor: pointer; z-index: 1000; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--surface-border); }
.scroll-circle svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-circle .progress-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 4; }
.scroll-circle .progress-fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 0.05s linear; }
.scroll-percent { font-size: 0.75rem; font-weight: 700; color: var(--accent); background: var(--surface-solid); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: monospace; z-index: 2; }

.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 420px; background: var(--surface-solid); border: 1px solid var(--surface-border); border-radius: 28px; padding: 18px 22px; z-index: 1100; font-size: 0.85rem; }
.cookie-btn { background: transparent; border: 1px solid var(--surface-border); padding: 8px 18px; border-radius: 40px; cursor: pointer; color: var(--text-main); }
.cookie-btn.accept { background: var(--accent); border: none; color: white; }

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
  .desktop-sidebar { display: block; position: sticky; top: 32px; height: calc(100vh - 64px); width: 260px; flex-shrink: 0; padding-right: 20px; border-right: 1px solid var(--surface-border); }
  .main-with-sidebar { display: flex; gap: 48px; max-width: 1480px; margin: 0 auto; padding: 36px 32px; }
  .main-content { flex: 1; padding-top: 0; }
  .desktop-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 60px; color: var(--text-muted); text-decoration: none; font-weight: 500; }
  .desktop-nav a:hover, .desktop-nav a.active { background: rgba(196, 154, 95, 0.1); color: var(--accent); }
}

#loader { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: 0.5s; }
#loader.hide { opacity: 0; visibility: hidden; }
.loader-spinner { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--surface-border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
