/* style.css - Bespoke Styles for AI Voice and Web */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-color: #050505;
  --text-color: #FFFFFF;
  --neon-red: #D00000;
  --neon-red-glowing: #FF1A1A;
  --plane-bg: #121216;
  --plane-bg-hover: #181822;
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--bg-color);
  padding: 2.2rem 0 1.2rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
}

.header-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text-color);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.02em;
  user-select: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Clean, Non-Angular Rectangular Nav Items */
.nav-item-wrapper {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-red);
  border-left: none; /* Avoid double borders */
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.nav-item-wrapper:first-child {
  border-left: 1px solid var(--neon-red);
}

.nav-item-wrapper:hover {
  background-color: rgba(208, 0, 0, 0.15);
}

.nav-link {
  color: var(--text-color);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 2rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-link svg {
  transition: transform 0.2s ease;
}

.nav-item-wrapper:hover .nav-link svg {
  transform: translateY(2px);
}

.header-cta-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--neon-red);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.65rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  background-color: rgba(208, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--plane-bg);
  border: 1px solid var(--neon-red);
  padding: 0.75rem 0;
  min-width: 180px;
  display: none;
  z-index: 10;
  border-radius: 0;
}

.dropdown-item {
  color: var(--text-color);
  padding: 0.5rem 1.5rem;
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dropdown-item:hover {
  background-color: rgba(208, 0, 0, 0.2);
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* SVG Line Border at bottom of Header */
.header-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
  z-index: 1;
}

.header-bottom-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Section (Centering KING) */
.hero-king {
  min-height: calc(100vh - 80px);
  padding: 8rem 2rem 4rem 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.king-interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 600px;
  text-align: center;
  z-index: 2;
}

/* KING Sensor Button & Ring System */
.king-sensor-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  height: 260px;
  margin-bottom: 2rem;
}

.king-sensor-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  width: 190px;
  height: 190px;
  position: relative;
  z-index: 2;
  border-radius: 50%;
}

.sensor-metallic-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #e2e2e2 15%, #969696 30%, #f7f7f7 45%, #cccccc 60%, #ffffff 75%, #7a7a7a 100%);
  padding: 5px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.95), inset 0 -1px 3px rgba(0,0,0,0.6), 0 12px 35px rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.king-sensor-btn:hover .sensor-metallic-ring {
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.95), inset 0 -1px 3px rgba(0,0,0,0.6), 0 0 28px rgba(255, 26, 26, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #eaeaea 15%, #b2b2b2 30%, #ffffff 45%, #d6d6d6 60%, #ffffff 75%, #919191 100%);
}

.sensor-dark-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #050507;
  border: 1px solid #151515;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.sensor-lens {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #151515 0%, #000000 75%);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.95);
}

.sensor-red-core {
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ff5555 0%, #ff1a1a 45%, #880000 80%, #3d0000 100%);
  box-shadow: 0 0 24px 6px #ff1a1a, 0 0 45px 15px rgba(255, 26, 26, 0.35);
  transition: transform 0.1s linear, box-shadow 0.1s linear, opacity 0.3s ease;
  opacity: 0.85;
}

.king-sensor-btn:hover .sensor-red-core {
  opacity: 1;
  box-shadow: 0 0 32px 8px #ff1a1a, 0 0 55px 20px rgba(255, 26, 26, 0.55);
  transform: scale(1.05);
}

.sensor-glare {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 25%;
  height: 12%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50% / 30%;
  transform: rotate(-35deg);
  pointer-events: none;
}

/* Concentric Ripple Waves */
.sensor-ripple-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 26, 26, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  z-index: 1;
}

.sensor-ripple-effect.pulse-1 {
  animation: ripple-out-1 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.sensor-ripple-effect.pulse-2 {
  animation: ripple-out-2 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
  animation-delay: 1.25s;
}

@keyframes ripple-out-1 {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes ripple-out-2 {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Label Group Styles */
.king-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.king-name-label {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
}

.king-status-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff1a1a;
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
  transition: all 0.3s ease;
}

.king-status-label.connecting {
  color: #fb8500;
  text-shadow: 0 0 10px rgba(251, 133, 0, 0.3);
}

.king-status-label.listening {
  color: #ff1a1a;
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.king-status-label.error {
  color: #e63946;
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

.king-instruction {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.5;
  color: #888888;
  max-width: 340px;
  min-height: 2.8rem;
  transition: color 0.3s ease;
}

/* Technical Red Signal Line */
.king-signal-line-container {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
}

.king-signal-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff1a1a;
  opacity: 0.15;
  transition: all 0.2s ease;
}

.king-signal-line.active {
  opacity: 0.85;
  box-shadow: 0 0 8px #ff1a1a;
  animation: signal-jitter 0.1s infinite alternate;
}

@keyframes signal-jitter {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(2.5); }
}

/* Action Container */
.king-actions-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.king-end-btn {
  background: none;
  border: none;
  color: #666666;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s ease;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.king-end-btn:hover {
  color: #ff1a1a;
  border-bottom-color: #ff1a1a;
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.35);
}

/* Service Showcase ("What We Architect") */
.showcase {
  background-color: var(--bg-color);
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.showcase-title-container {
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--neon-red);
  padding-bottom: 0.5rem;
}

.showcase-grid {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.showcase-icon-wrapper {
  width: 50px;
  height: 50px;
  border: 1px solid var(--neon-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background-color: var(--plane-bg);
}

.showcase-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
}

.showcase-block-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  width: 100%;
}

.showcase-item {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.showcase-item::before {
  content: "•";
  color: var(--neon-red);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.showcase-item strong {
  font-weight: 700;
}

/* Star Accent */
.star-accent {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.star-accent svg {
  width: 100%;
  height: 100%;
  fill: var(--text-color);
  opacity: 0.8;
}

/* Footer */
.footer {
  border-top: 2px solid var(--neon-red);
  background-color: var(--bg-color);
  padding: 3rem 2rem;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-keyword {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.footer-keyword:not(:last-child)::after {
  content: "|";
  margin-left: 1.5rem;
  color: var(--neon-red);
}

.footer-right {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-right a {
  color: var(--text-color);
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--neon-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 2rem auto 0 auto;
  border-top: 1px solid rgba(208, 0, 0, 0.2);
  padding-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #8e9aaf;
}

.footer-bottom a {
  color: #8e9aaf;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--neon-red);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cta-plane-container {
    grid-column: span 1;
    clip-path: none;
  }
  
  .cta-plane {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    clip-path: none;
    padding: 2rem;
  }
  
  .cta-buttons-group {
    align-items: flex-start;
    width: 100%;
  }
  
  .book-btn-wrapper {
    width: 100%;
    text-align: center;
  }
  
  .book-btn {
    width: 100%;
  }
  
  .showcase-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
  }
  
  .header {
    position: relative;
    padding-bottom: 1.5rem;
  }
  
  .header-bottom-line {
    display: none;
  }
  
  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.6rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-item-wrapper {
    transform: none;
    border: 1px solid var(--neon-red);
  }
  
  .nav-link {
    transform: none;
    padding: 0.5rem 1rem;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .cta-text {
    font-size: 1.2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-left {
    justify-content: center;
  }
  
  .footer-keyword:not(:last-child)::after {
    display: none;
  }
  
  .footer-keyword {
    border: 1px solid var(--neon-red);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* UI/UX Polish Rules */
@media (max-width: 768px) {
  .hero-king {
    min-height: auto !important;
    padding-top: 6.5rem !important; /* Position it high, right below header */
    padding-bottom: 3rem !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
}

@media (max-width: 360px) {
  .logo {
    font-size: 1.2rem;
  }
}

/* Tasteful founder footer contact card */
.founder-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.founder-contact-label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.founder-contact-action {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-color);
}

.founder-tel {
  color: var(--neon-red);
  text-decoration: none;
  font-weight: 700;
  transition: text-shadow 0.2s ease;
}

.founder-tel:hover {
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.35);
}

@media (max-width: 768px) {
  .founder-contact {
    align-items: center;
    text-align: center;
  }
}



/* Premium H1 editorial screen title and description */
.header-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888888;
  margin-top: 0.4rem;
  margin-bottom: 0;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}

.king-description {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #666666;
  max-width: 420px;
  margin-bottom: 2.2rem;
  text-align: center;
}


@media (max-width: 768px) {
  .header {
    padding: 1.5rem 0 1rem 0 !important;
  }
  .header-inner {
    padding: 0 1.5rem !important;
  }
  .king-description {
    font-size: 0.82rem;
    max-width: 290px;
  }
}

/* Mobile click target pointer-events fix */
.king-sensor-btn * {
  pointer-events: none !important;
}
