/* ==========================================
   INTERNLINK - DESIGN SYSTEM & STYLESHEET
   ========================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables */
:root {
  --font-heading: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Palette */
  --bg: #030304;
  --bg-card: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.15);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #bd52eb;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #bd52eb 100%);
  --accent-btn-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1100px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   BACKGROUND EFFECTS (GRID & GLOWS)
   ========================================== */

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 10%, transparent 80%);
  pointer-events: none;
}

.bg-radial-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: #030304;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.blob-purple {
  top: -10%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(189, 82, 235, 0.3) 0%, transparent 70%);
  animation: floatBlob1 25s ease-in-out infinite alternate;
}

.blob-cyan {
  bottom: -10%;
  right: 15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 70%);
  animation: floatBlob2 30s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 12%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.95); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-10%, -8%) scale(0.9); }
  100% { transform: translate(6%, 5%) scale(1.1); }
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 3, 4, 0.75);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-fast);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.logo-container img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

.logo-container span {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 20px;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-cta:hover {
  background: #fff !important;
  color: #000 !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-normal);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   LAYOUT CONTAINER
   ========================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  min-height: 80vh;
}

.section {
  display: none;
  animation: sectionEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active {
  display: block;
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-btn-gradient);
  color: #030304;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================
   CARDS & GRID
   ========================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,242,254,0.05) 0%, rgba(189,82,235,0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.08);
}

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

/* ==========================================
   HERO / HOME SECTION
   ========================================== */

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(189, 82, 235, 0.1);
  border: 1px solid rgba(189, 82, 235, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  color: #c084fc;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Waitlist Form */
.waitlist-container {
  max-width: 480px;
  margin: 0 auto 50px;
}

.waitlist-form {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 50px;
  transition: var(--transition-normal);
}

.waitlist-form:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-btn {
  background: #fff;
  color: #030304;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.waitlist-btn:hover {
  background: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.waitlist-form-wrapper p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Metrics Dashboard */
.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.metric-card {
  text-align: center;
  padding: 20px;
}

.metric-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #fff 30%, #a3a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ==========================================
   BLOG LAYOUT
   ========================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  cursor: pointer;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-category {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-read-time {
  color: var(--text-muted);
}

.blog-card h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.blog-card:hover h3 {
  color: var(--accent-cyan);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-link svg {
  transform: translateX(4px);
  stroke: var(--accent-cyan);
}

.blog-card:hover .blog-link {
  color: var(--accent-cyan);
}

/* ==========================================
   ARTICLE WRAPPER & READER VIEW
   ========================================== */

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin-top: 15px;
  margin-bottom: 20px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e5e7eb;
}

.article-content h3 {
  font-size: 1.45rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #fff;
}

.article-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.article-content ul, 
.article-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.article-content strong {
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-cyan);
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-card-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.contact-info-block h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-info-block p {
  color: #fff;
  font-weight: 600;
}

.contact-info-block a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info-block a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.about-feature-card strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.about-feature-card p {
  font-size: 0.95rem;
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 32px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(3, 3, 4, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 40px;
    align-items: flex-start;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
  }
  
  .nav-cta {
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }
  
  .metrics-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
  }
  
  .metric-card {
    padding: 10px;
  }
  
  .container {
    padding-top: 100px;
  }
  
  .waitlist-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }
  
  .waitlist-form:focus-within {
    box-shadow: none;
  }
  
  .waitlist-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    height: 52px;
  }
  
  .waitlist-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  }
  
  .waitlist-btn {
    height: 52px;
    width: 100%;
  }
}
