@import "fonts.css";
﻿/* ==========================================================================
   RobinK.me & Hermes OS Design System
   Autonomous deep-tech systems architecture design system
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b1a20;
  --bg-deep: #060e12;
  --bg-card: #112228;
  --bg-card-hover: #162c33;
  --ink: #f4f2ee;
  --muted: #a6b2b5;
  --muted-dim: #7b8a8d;
  --teal: #6E9EA4;
  --teal-light: #9de2e6;
  --teal-glow: rgba(110, 158, 164, 0.25);
  --gold: #c9a96a;
  --gold-glow: rgba(201, 169, 106, 0.25);
  --rule: rgba(110, 158, 164, 0.2);
  --rule-subtle: rgba(255, 255, 255, 0.08);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'Roboto Mono', monospace;
}

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

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #152d36 0%, var(--bg) 60%, var(--bg-deep) 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Subtle Tech Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(110, 158, 164, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 158, 164, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HERMES OS TRANSITION CURTAIN
   ========================================================================== */
.rk-curtain {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1),
              visibility 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.rk-curtain-bg {
  position: absolute;
  inset: 0;
  background: #08151a;
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}

.rk-curtain-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 158, 164, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.rk-curtain-emblem {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rk-curtain-emblem svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 20px rgba(110, 158, 164, 0.4));
  animation: oxPulse 2s infinite ease-in-out;
}

.rk-curtain-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
}

@keyframes oxPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(110,158,164,0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 28px rgba(110,158,164,0.6)); }
}

/* Curtain States */
.rk-curtain.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.rk-curtain.is-active .rk-curtain-bg {
  transform: scaleY(1);
}
.rk-curtain.is-active .rk-curtain-emblem {
  opacity: 1;
  transform: scale(1);
}

.rk-curtain.is-revealed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0.25s;
}
.rk-curtain.is-revealed .rk-curtain-bg {
  transform: scaleY(0);
}
.rk-curtain.is-revealed .rk-curtain-emblem {
  opacity: 0;
  transform: scale(0.92);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(11, 26, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-subtle);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(110, 158, 164, 0.12);
  border: 1px solid var(--teal);
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--teal);
  color: #060e12;
  box-shadow: 0 0 20px rgba(110, 158, 164, 0.4);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-burger { display: block; }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #08151a;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-links a {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
   PAGE HERO SECTION
   ========================================================================== */
.sub-hero {
  position: relative;
  z-index: 1;
  padding: clamp(140px, 18vh, 200px) clamp(20px, 5vw, 80px) clamp(50px, 8vh, 90px);
  max-width: 1240px;
  margin: 0 auto;
}

.sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(201, 169, 106, 0.08);
  padding: 6px 14px;
  border: 1px solid rgba(201, 169, 106, 0.25);
  border-radius: 4px;
}

.sub-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
  max-width: 960px;
}

.sub-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-light);
}

.sub-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 780px;
  font-weight: 400;
}

/* ==========================================================================
   MAIN CONTENT CONTAINERS & BENTO GRIDS
   ========================================================================== */
.sub-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px) clamp(80px, 12vh, 140px);
}

.rk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.rk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 820px) {
  .rk-grid-2 { grid-template-columns: 1fr; }
}

.rk-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.rk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rk-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(110, 158, 164, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.rk-card:hover::before {
  opacity: 1;
}

.rk-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.rk-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.rk-card-desc {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ==========================================================================
   LUXURY ACCORDION (FAQ)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(110, 158, 164, 0.4);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
  font-family: var(--font-sans);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: #08151a;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px 28px;
}

/* ==========================================================================
   CONTACT FORM & LUXURY INPUTS
   ========================================================================== */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 48px);
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(8, 21, 26, 0.7);
  border: 1px solid var(--rule);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 16px var(--teal-glow);
  background: rgba(8, 21, 26, 0.95);
}

.form-btn {
  background: var(--teal);
  color: #060e12;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: 10px;
}

.form-btn:hover {
  background: var(--teal-light);
  box-shadow: 0 0 24px rgba(110, 158, 164, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   LEGAL EDITORIAL STYLING (Privacy, Terms)
   ========================================================================== */
.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(32px, 6vw, 64px);
  border-radius: 8px;
}

.legal-body h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin: 36px 0 16px;
  font-weight: 700;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.legal-body ul {
  margin: 0 0 24px 24px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   INFOGRAPHICS GALLERY & ARCHITECTURE CARDS
   ========================================================================== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.info-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060e12;
  overflow: hidden;
  position: relative;
}

.info-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.info-card:hover .info-img-wrap img {
  transform: scale(1.04);
}

.info-body {
  padding: 28px;
}

/* ==========================================================================
   UNIFIED FOOTER WITH "RobinK.me" VOXEL PARTICLES CANVAS
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  background: #08151a;
  border-top: 1px solid var(--rule);
  padding: clamp(60px, 10vh, 100px) clamp(20px, 4vw, 56px) 40px;
  color: var(--ink);
  overflow: hidden;
}

.ft-container {
  max-width: 1240px;
  margin: 0 auto;
}

.ft-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(60px, 8vh, 90px);
}

@media (max-width: 900px) {
  .ft-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .ft-cols { grid-template-columns: 1fr; }
}

.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ft-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.ft-brand-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
}

.ft-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.ft-links a:hover {
  color: #ffffff;
}

/* Interactive Voxel Brandmark Container */
.ft-brandmark {
  margin-top: 30px;
  text-align: center;
}

.ft-word {
  position: relative;
  width: 100%;
  height: clamp(140px, 20vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.ft-vox {
  width: 100%;
  height: 100%;
  display: block;
}

.ft-rule2 {
  border: 0;
  border-top: 1px solid var(--rule-subtle);
  margin: 32px 0 24px;
}

.ft-legal {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.ft-legal a {
  color: var(--muted-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ft-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   DEMO MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0f2128;
  border: 1px solid var(--teal);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  max-width: 520px;
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 8px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}
