@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors */
  --bg-dark: #0a0915;
  --bg-card: rgba(18, 15, 30, 0.45);
  --bg-card-hover: rgba(28, 24, 45, 0.65);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f8fafc; /* Silver-white */
  --text-secondary: #cbd5e1; /* Silver-gray */
  --text-muted: #64748b; /* Muted slate */

  /* Glowing Accents */
  --accent-primary: #a855f7; /* Royal Purple */
  --accent-primary-rgb: 168, 85, 247;
  
  --accent-secondary: #cbd5e1; /* Metallic Silver */
  --accent-secondary-rgb: 203, 213, 225;
  
  --accent-pink: #ec4899; /* Electric Pink */
  --accent-pink-rgb: 236, 72, 153;
  
  --gradient-accent: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-pink) 100%);
  --glow-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.15);
  --glow-shadow-secondary: 0 0 30px rgba(var(--accent-secondary-rgb), 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(var(--accent-primary-rgb), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(var(--accent-secondary-rgb), 0.05) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.004) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.004) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-primary-rgb), 0.6);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: var(--transition-normal);
}

header.scrolled .nav-container {
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--bg-dark);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-normal);
}

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

.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
  animation: fadeIn 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 900px;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 650px;
  margin-bottom: 40px;
  color: var(--text-secondary);
  animation: slideUp 1s ease-out;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: slideUp 1.2s ease-out;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-dark);
  border: none;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(var(--accent-primary-rgb), 0.3), 0 0 40px rgba(var(--accent-secondary-rgb), 0.2);
}

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

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

/* --- Section Heading --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .tag {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
}

.section-padding {
  padding: 100px 0;
}

/* --- Pillars Section (Apps, Plugins, Games) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.pillar-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pillar-card:nth-child(1) .pillar-icon-wrapper {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.pillar-card:nth-child(2) .pillar-icon-wrapper {
  background: rgba(var(--accent-secondary-rgb), 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
}

.pillar-card:nth-child(3) .pillar-icon-wrapper {
  background: rgba(var(--accent-pink-rgb), 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(var(--accent-pink-rgb), 0.2);
}

.pillar-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.pillar-card ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-card li::before {
  content: '→';
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.pillar-card:hover li::before {
  color: inherit;
  transform: translateX(3px);
}

/* --- Custom Software Section --- */
.custom-software {
  position: relative;
}

.custom-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.custom-content {
  flex: 1;
}

.custom-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-badge {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}

.custom-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.custom-content p {
  margin-bottom: 30px;
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.spec-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Code visual simulation */
.code-mockup {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(15, 18, 25, 0.6);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  box-shadow: var(--glow-shadow-secondary);
}

.code-header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-line {
  margin-bottom: 6px;
}
.code-keyword { color: #f472b6; }
.code-string { color: var(--accent-secondary); }
.code-variable { color: var(--accent-primary); }
.code-comment { color: var(--text-muted); }

/* --- Contact & Inquiry Section --- */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.1);
}

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

/* Success Message Overlay */
.submit-status {
  padding: 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.submit-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.submit-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Legal / Standard Pages --- */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul {
  margin-left: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body li {
  color: var(--text-secondary);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(7, 8, 11, 0.9);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}

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

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .custom-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .specs-list {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
  }

  .mobile-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }

  .specs-list {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 24px;
  }
}
