/* ===================================================
   TKtech – Cinematic Space Theme (style.css)
   =================================================== */

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

:root {
  --bg-deep:   #04050a; /* Darker than original for outer space */
  --frame-bg:  #0e0f21; /* Authentic Indigo from tktechoffical.com */
  --surface:   #15172b;
  --border:    rgba(255,255,255,.07);
  --text:      #e2e5f2;
  --text-muted:#8a8fa3;
  --accent:    #6c8eff;
  --gold:      #ccab4d;
  
  --token-glow: #b5aaff;
  --carbon-glow: #ff9d83;
  --contract-glow: #b7dfeb;
  
  --radius:    24px;
  --transition: .4s cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Deep Space Background ── */
.site-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg-deep);
  overflow: hidden; pointer-events: none;
}
.stars {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
}
.nebula-1 {
  position: absolute; top: -20%; left: -10%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(181,170,255,0.1) 0%, transparent 60%);
  filter: blur(60px); opacity: 0.8;
}
.nebula-2 {
  position: absolute; bottom: -20%; right: -10%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(108,142,255,0.08) 0%, transparent 60%);
  filter: blur(80px);
}

/* ── Floating Main Frame ── */
.app-frame {
  position: relative;
  width: 92%;
  max-width: 1320px;
  margin: 100px auto 60px;
  background-color: var(--frame-bg);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.05);
  overflow: visible; /* To allow logo to pop out */
  min-height: 100vh;
}

/* ── Floating Logo ── */
.main-logo-wrap {
  position: absolute;
  top: -46px; /* Pops out of the frame */
  left: 0; right: 0;
  display: flex; justify-content: center;
  z-index: 100;
  pointer-events: none;
}
.main-logo {
  width: 240px; height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.9));
}

/* ── Shared Container & Text ── */
.container { padding: 0 6%; }
.section { padding: 120px 0; position: relative; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 680px; }

/* ── Navigation ── */
.inner-nav {
  padding: 40px 6%;
  display: flex; justify-content: flex-end;
  align-items: center;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; } /* Mobile only */

/* ── Hero Section ── */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 60px 6% 160px;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}
.hero-content {
  flex: 1; max-width: 600px;
  position: relative; z-index: 2;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05;
  margin-bottom: 32px; letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #8a8fa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 48px; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, rgba(108,142,255,0.2), rgba(167,139,250,0.2));
  border: 1px solid rgba(108,142,255,0.4);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 16px 36px; border-radius: 12px;
  text-decoration: none; letter-spacing: 0.02em;
  box-shadow: 0 0 40px rgba(108,142,255,0.15);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: rgba(108,142,255,0.2);
  border-color: rgba(108,142,255,0.8);
  box-shadow: 0 0 60px rgba(108,142,255,0.4);
  transform: translateY(-2px);
}
/* Orb Visuals */
.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50vw; pointer-events: none;
  background-image: url('img/bg-hero-custom.png');
  background-size: cover;
  background-position: left center;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 40%, transparent 100%);
  opacity: 0.8;
}


/* ── Core Modules Grid ── */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.infra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--transition);
}
.infra-card:hover { transform: translateY(-4px); }
/* Glow removed as per user request */
.card-glow { display: none; }


.card-icon {
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px; position: relative; z-index: 2;
}
.card-icon img {
  width: 120%; height: 120%;
  margin-left: -10%;
  object-fit: contain;
  mix-blend-mode: screen; /* Standard blending for black suppression */
  filter: contrast(1.2) brightness(1.1) drop-shadow(0 0 20px rgba(108,142,255,0.3));
  transition: transform var(--transition), filter var(--transition);
}
.infra-card:hover .card-icon img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 40px rgba(108,142,255,0.5));
}

.infra-card h2 { 
  font-size: 1.25rem; 
  font-weight: 700; 
  letter-spacing: 0.01em; 
  position: relative; 
  z-index: 2; 
  color: #ffffff; /* Unified title color to white */
}


.infra-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; flex: 1; position: relative; z-index: 2;}

.disclaimer-tag {
  font-size: 0.75rem; color: var(--gold);
  border-top: 1px solid rgba(204,171,77,0.2);
  padding-top: 20px; margin-top: auto;
  line-height: 1.5; position: relative; z-index: 2;
}

/* ── Technology Block ── */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tech-text { padding-right: 40px; }
.tech-text p { color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
/* ── Three-Column Layout & Tech Cards ── */
.split-layout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px;
}
.tech-analysis-card {
  background-color: var(--frame-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px; 
  padding: 260px 40px 40px 40px; /* Adjusted padding for 3 columns */
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center bottom;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tech-analysis-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(4,5,10,0.5) 50%, rgba(4,5,10,0.95) 100%);
  pointer-events: none; z-index: 1;
}
.tech-analysis-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.15);
}
/* Assigning the majestic planetary & cosmic images */
.tech-card-bg-1 { background-image: url('img/bg-01.png'); background-position: center top; }
.tech-card-bg-2 { background-image: url('img/bg-02.jpg'); background-position: center top; }
.tech-card-bg-3 { background-image: url('img/bg-regulatory-custom.png'); background-position: center top; }

.tech-analysis-card h3 { font-size: 1.5rem; margin-bottom: 16px; position: relative; z-index: 2; }
.tech-analysis-card p { color: var(--text-muted); line-height: 1.7; position: relative; z-index: 2; font-size: 1.05rem; }
.disclaimer-tag.alt { margin-top: 32px; font-weight: 500; }

/* ── Regulatory Box Redesign ── */
.regulatory {
  padding: 100px 6% 160px;
}
.reg-wrapper {
  position: relative;
  background-color: var(--frame-bg);
  border: 1px solid rgba(204,171,77,0.15); /* Subtle gold border */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 100px rgba(0,0,0,0.5);
  display: flex;
  align-items: stretch;
  min-height: 480px;
}

/* Graphic Left Side */
.reg-visual {
  width: 45%;
  position: relative;
  background-image: url('img/bg-regulatory-custom.png');
  background-size: cover;
  background-position: left center;
}
/* A dark gradient overlay to ensure text is readable if it overlaps, and blend the edge */
.reg-visual::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 100px;
  background: linear-gradient(to left, var(--frame-bg) 0%, transparent 100%);
}

/* Content Right Side */
.reg-content {
  width: 55%;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(14,15,33,0.95) 0%, rgba(4,5,10,0.98) 100%);
  backdrop-filter: blur(10px);
}

.reg-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(204,171,77,0.1);
  border: 1px solid rgba(204,171,77,0.3);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
  align-self: flex-start;
}

.reg-title { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; letter-spacing: -0.02em; text-align: left;}
.reg-title strong { color: var(--gold); }

.reg-main { font-size: 1.15rem; color: #fff; line-height: 1.8; margin-bottom: 32px; font-weight: 300; text-align: left; }

.reg-features {
  display: flex; gap: 24px; margin-bottom: 32px;
}
.reg-feat {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.95rem;
}
.reg-feat svg { width: 20px; height: 20px; color: var(--gold); }

.reg-divider-line { height: 1px; background: rgba(255,255,255,0.05); margin: 0 0 32px 0; }
.reg-detail { font-size: 0.9rem; color: var(--text-muted); text-align: left;}

@media (max-width: 1024px) {
  .reg-wrapper { flex-direction: column; }
  .reg-visual { width: 100%; height: 300px; }
  .reg-visual::after { 
    width: 100%; height: 100px; right: 0; bottom: 0; top: auto;
    background: linear-gradient(to top, var(--frame-bg) 0%, transparent 100%);
  }
  .reg-content { width: 100%; padding: 40px; }
  .reg-features { flex-direction: column; gap: 16px; }
}

/* ── Footer ── */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 60px 6% 40px;
}
.footer-long-text {
  font-size: 0.85rem; color: rgba(138,143,163,0.6); line-height: 1.8;
  max-width: 900px; margin: 0 auto 40px; text-align: center;
}
.footer-long-text strong { color: rgba(255,255,255,0.5); font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo { height: 24px; filter: brightness(0) invert(1); opacity: 0.3; }
.copyright { font-size: 0.8rem; color: rgba(138,143,163,0.4); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .app-frame { width: 96%; margin-top: 80px; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { right: -30%; opacity: 0.4; }
  .main-logo { width: 180px; }
}
@media (max-width: 768px) {
  .main-logo-wrap { top: -30px; }
  .main-logo { width: 140px; }
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .infra-grid { grid-template-columns: 1fr; }
  .reg-box { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 20px; }
}
