/* 
   G7D INNOVATION AB — DESIGN SYSTEM
   Theme: Industrial Premium / Innovation Authority
   Base: Dark Mode / Carbon / Emerald / Violet
*/

:root {
  /* Colors - Core */
  --bg-dark: #07090D;
  --bg-panel: #0E1116;
  --bg-glass: rgba(14, 18, 25, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.15);

  /* Brand Accents */
  --accent-primary: #10B981; /* Emerald */
  --accent-secondary: #8B5CF6; /* Violet */
  --text-main: #F4F7FB;
  --text-dim: #94A3B8;
  --text-muted: #64748B;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --grad-dark: radial-gradient(circle at top right, #111827 0%, #07090D 100%);

  /* Spacing & Radii */
  --spacer: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --container-width: 1200px;
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* COMPONENTS: BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--grad-hero);
  color: white;
  box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -12px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
}

.btn--lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.nav--scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  background: rgba(255,255,255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle);
}

.nav-cta:hover {
  background: rgba(255,255,255, 0.12);
  border-color: var(--border-active);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background: var(--grad-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black, transparent 80%);
  opacity: 0.4;
}

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  opacity: 0.15;
}

.hero-orb--1 {
  top: -10%;
  right: -5%;
  background: var(--accent-primary);
  animation: float 20s infinite alternate;
}

.hero-orb--2 {
  bottom: -10%;
  left: -5%;
  background: var(--accent-secondary);
  animation: float 25s infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0,0); }
  100% { transform: translate(40px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 740px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 2rem;
}

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* GRID SECTIONS */
section {
  padding: 10rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 650px;
  margin-bottom: 4rem;
}

/* CARDS: Ecosystem / Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.015);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* NUMBERS */
.numbers-bar {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.number-val {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.number-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FORM */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-panel);
  padding: 4rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255,255,255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255,255,255, 0.05);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-success {
  display: none;
  text-align: center;
  padding: 4rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem;
}

/* FOOTER */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
  background: #040608;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-copy {
  width: 100%;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 3.5rem; }
  .grid { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* PRIVACY NOTICE (NO COOKIES) */
.privacy-notice {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: fit-content;
    margin: 0 auto;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.privacy-notice p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.privacy-notice .btn--sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 80px;
}

@media (max-width: 768px) {
    .privacy-notice {
        flex-direction: column;
        text-align: center;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}
