/* --- style.css --- */
/* Master Stylesheet for Oonur.com - FINAL, STABLE HEADER */

/* --- FONT PATHS (Confirmed from your screenshot) --- */
@font-face {
  font-family: 'Red Hat Display'; 
  src: url('RedHatDisplay-VariableFont_wght.woff2') format('woff2');
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('instrument-serif-v5-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --panel: #141414;
  --text: #ededed;
  --muted: #888;
  --accent: #ffffff;
  --line: #2a2a2a;
  --glow-color: rgba(255, 255, 255, 0.08);
  --accent-gradient: linear-gradient(90deg, #ccc, #fff);
  --font-body: 'Red Hat Display', sans-serif;
  --font-heading: 'Instrument Serif', serif;
}

* { box-sizing: border-box; }
::selection { background: var(--accent); color: var(--bg); }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0%, var(--panel), var(--bg) 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

body.no-cursor { cursor: default; }

body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--glow-color), transparent 40%);
  z-index: -2; pointer-events: none;
}

/* --- LAYOUT & TYPOGRAPHY --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 4vw; }
.content-section { padding: 18vh 0; border-bottom: 1px solid var(--line); position: relative; }
.section-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 5rem; font-weight: 400; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* --- HEADER (FINAL, ROBUST VERSION) --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; /* Use flexbox for the main layout */
  justify-content: flex-end; /* Push content to the right */
  align-items: center;
  padding: 1.5rem 4vw;
  height: 70px; /* Give header a fixed height */
  background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* Initial hidden state to prevent FOUC */
  transform: translateY(-100%);
  opacity: 0;
}
.site-header.is-static { 
  transform: translateY(0); 
  opacity: 1;
}
.header-brand {
  position: absolute; /* Take logo out of the document flow */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* The key to perfect centering */
  font-family: var(--font-body);
  font-weight: 900; /* EXTRA BOLD */
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.header-link-wrapper {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem; 
  letter-spacing: 0.1em; 
  text-transform: uppercase;
}
.header-link { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.header-link:hover { color: var(--accent); }

/* --- CURSOR & CANVAS --- */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 2s ease; }
#webgl-canvas:not([style*="display: none"]) { background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%); }
.cursor { position: fixed; z-index: 1000; pointer-events: none; contain: layout style size; }
.cursor__dot { position: absolute; top: -4px; left: -4px; width: 8px; height: 8px; background-color: var(--accent); border-radius: 50%; transition: transform 0.3s ease; }
.cursor__text { position: absolute; top: -18px; left: -18px; width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; transform: scale(0); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.cursor.is-hovering .cursor__text { transform: scale(1); }
.cursor.is-hovering .cursor__dot { transform: scale(0); }

/* --- HERO SECTION --- */
.landing { height: 100vh; min-height: 700px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.landing h1 { font-family: var(--font-heading); font-size: clamp(3.5rem, 11vw, 10rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.landing .line { 
  overflow: hidden; 
  padding-bottom: 0.1em; 
  position: relative;
}
.landing .line-inner { 
  display: block; 
  will-change: transform, opacity;
  /* Initial hidden state to prevent FOUC */
  transform: translateY(30px);
  opacity: 0;
  scale: 0.95;
}
.scroll-indicator { 
  position: absolute; bottom: 2rem; left: 4vw; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; 
  /* Initial hidden state to prevent FOUC */
  opacity: 0;
  transform: translateY(20px);
}
.scroll-indicator::before { content: '↓'; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator::before { animation: none; }
  .badge--alert { animation: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- GENERIC SECTIONS --- */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 5rem; align-items: center; }
@media (min-width: 900px) { .manifesto { grid-template-columns: 1fr 1.2fr; } }
.manifesto__title { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -0.01em; font-weight: 400; }
.manifesto__text p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.7; max-width: 38em; margin-bottom: 1.5em; color: #ccc; }
.manifesto__text p:last-child { margin-bottom: 0; }
.word { display: inline-block; }

.case-study__panel { background-color: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4rem 5vw; text-align: center; }
.case-study__kicker { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.case-study__text { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-family: var(--font-heading); line-height: 1.6; max-width: 35em; margin: 0 auto; color: #ddd; }
.case-study__text span { display: block; margin-top: 2rem; color: var(--muted); font-size: 0.9em; font-family: var(--font-body); }

/* Case Study panel with warm gradient background */
.case-study__panel--gradient {
  background: linear-gradient(135deg, 
    #6B7B8C 0%,     /* Muted blue-grey at top-left */
    #D4AF37 30%,    /* Rich golden-yellow */
    #B8860B 60%,    /* Warm earthy orange */
    #8B4513 100%    /* Rich dark brown at bottom-right */
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.case-study__panel--gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%),
    radial-gradient(ellipse at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-study__panel--gradient:hover::before {
  opacity: 1;
}

.case-study__panel--gradient .case-study__kicker,
.case-study__panel--gradient .case-study__text {
  color: #f8f8f8;
  position: relative;
  z-index: 1;
}

.case-study__panel--gradient .case-study__text span {
  color: rgba(248, 248, 248, 0.8);
}

.products-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .products-grid { grid-template-columns: 1fr 1fr; } }
.offer-card { background-color: var(--panel); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.offer-card::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  border-radius: inherit; 
  padding: 1px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05), transparent); 
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); 
  -webkit-mask-composite: xor; 
  mask-composite: exclude; 
  opacity: 0; 
  transition: opacity 0.4s ease; 
}
.offer-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.05); 
}
.offer-card:hover::before { opacity: 1; }

/* Flagship card with gradient background */
.offer-card--flagship {
  background: linear-gradient(180deg, 
    #2a1a2e 0%,     /* Dark purple-grey at top */
    #4a2c3a 25%,    /* Muted purple-mauve */
    #6b3a2a 50%,    /* Dark orange-brown */
    #8b1a1a 75%,    /* Rich burgundy */
    #5c0a0a 100%    /* Deep dark red at bottom */
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.offer-card--flagship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.2) 0%,    /* Soft pink accent */
    rgba(255, 255, 255, 0.1) 30%,   /* Subtle white */
    rgba(255, 182, 193, 0.15) 70%,  /* Soft pink */
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.offer-card--flagship:hover::before {
  opacity: 1;
}

.offer-card--flagship:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(255, 182, 193, 0.1);
}

.offer-card--flagship .offer-card__header,
.offer-card--flagship h3,
.offer-card--flagship p,
.offer-card--flagship li,
.offer-card--flagship .offer-card__footer {
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.offer-card--flagship .badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
}

/* Growth Protocol card with dark blue gradient background */
.offer-card--protocol {
  background: linear-gradient(135deg, 
    #404A52 0%,     /* Desaturated dark grey-blue at top-left */
    #1A2A3A 30%,    /* Deeper dark blue */
    #0A141E 70%,    /* Very dark blue */
    #000000 100%    /* Pure black at bottom-right */
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.offer-card--protocol::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(135, 206, 250, 0.2) 0%,    /* Light blue accent */
    rgba(255, 255, 255, 0.1) 30%,   /* Subtle white */
    rgba(135, 206, 250, 0.15) 70%,  /* Light blue */
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.offer-card--protocol:hover::before {
  opacity: 1;
}

.offer-card--protocol:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(135, 206, 250, 0.1);
}

.offer-card--protocol .offer-card__header,
.offer-card--protocol h3,
.offer-card--protocol p,
.offer-card--protocol li,
.offer-card--protocol .offer-card__footer {
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.offer-card--protocol .badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
}
.offer-card__header { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; align-items: center; }
.badge { display: inline-block; border: 1px solid var(--line); background: rgba(255,255,255,0.05); padding: 0.3rem 0.8rem; border-radius: 99px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.badge--alert { 
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #ffffff;
  border: 1px solid #ff6666;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    transform: scale(1.02);
  }
}
.offer-card h3 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.2rem); margin: 0 0 0.5rem; font-weight: 400; }
.offer-card__kicker { font-size: 1.1rem; color: #bbb; line-height: 1.6; max-width: 30em; margin-bottom: 2rem; }
.offer-card ul { list-style: none; padding: 0; margin: 0; }
.offer-card li { position: relative; padding-left: 1.5em; margin-bottom: 0.8em; line-height: 1.6; }
.offer-card li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.offer-card__footer { font-size: 0.9rem; color: var(--muted); margin-top: 2rem; }

.process { position: relative; padding-bottom: 3rem; }
.process__item { padding: 3rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .process__item { grid-template-columns: 0.2fr 1fr 2fr; gap: 2rem; } }
.process__item-num { font-size: 0.8rem; color: var(--muted); }
.process__item-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 400; }
.process__item-desc { font-size: 1.1rem; color: #bbb; line-height: 1.6; max-width: 35em; padding-top: 0.5em; }
    
.enquiry-layout { display: grid; grid-template-columns: 1fr; gap: 5rem; align-items: center; }
@media (min-width: 900px) { .enquiry-layout { grid-template-columns: 1fr 1.2fr; } }
.enquiry__intro p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.7; max-width: 30em; color: #ccc; }
.field { margin-bottom: 1.5rem; }
.label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
input, textarea, select { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--text); padding: 1rem; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-color); }
textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.submit-btn { padding: 1rem 2rem; border-radius: 99px; border: 1px solid var(--muted); background: transparent; color: var(--text); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; transition: all 0.4s ease; cursor: pointer; }
.submit-btn:hover { background-color: var(--accent); color: var(--bg); border-color: var(--accent); transform: scale(1.05); }
.submit-btn:active { transform: scale(1); }
.toast { display: none; margin-left: 1rem; font-size: 0.9rem; color: #ffaeae; }

/* --- FOOTER --- */
.site-footer { padding: 4rem 4vw; text-align: center; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--text); }

/* --- LEGAL PAGES (TERMS/PRIVACY) --- */
.legal-page main { padding: 12vh 5vw 6vh; }
.legal-paper {
  background-color: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 2.5rem 5vw;
}
.legal-paper h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 0.5rem; }
.legal-paper h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; margin: 2rem 0 1rem; }
.legal-paper p, .legal-paper li { font-size: 1.05rem; line-height: 1.7; max-width: 65ch; }
.legal-paper ul { padding-left: 1.5rem; }
.legal-paper .lede { color: #ccc; font-size: 1.2rem; margin-bottom: 1rem; }
.legal-paper .small { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }

/* Red Hat font styling for OONUR text */
.red-hat-text {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}