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

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; 
  background: #ffffff; color: #111111; line-height: 1.6; overflow-x: hidden; 
  word-wrap: break-word; overflow-wrap: break-word; 
}
a { color: #111; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVIGATION ===== */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 4rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06); }
nav .logo { font-size: 1.4rem; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: #000; }
nav .logo span { font-weight: 300; opacity: 0.5; }
nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
nav ul li a { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.5; transition: opacity 0.3s; }
nav ul li a:hover { opacity: 1; }

/* ===== HERO ===== */
.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url('img/hero-wave.jpg') center/cover no-repeat; filter: brightness(1.2) grayscale(1); opacity: 0.15; }
.hero-content { position: relative; z-index: 1; padding: 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 7rem); font-weight: 200; letter-spacing: 12px; text-transform: uppercase; margin-bottom: 1rem; color: #000; }
.hero h1 strong { font-weight: 700; }
.hero p { font-size: 1.1rem; letter-spacing: 4px; text-transform: uppercase; opacity: 0.5; margin-bottom: 3rem; color: #333; }
.hero .cta-group { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 1rem 2.5rem; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; border: 1px solid #000; transition: all 0.3s; cursor: pointer; background: transparent; color: #000; }
.btn:hover { background: #000; color: #fff; }
.btn-filled { background: #000; color: #fff; }
.btn-filled:hover { background: transparent; color: #000; }

/* ===== SECTIONS & TYPOGRAPHY ===== */
section { padding: 6rem 2rem; } 
.section-label { font-size: 0.7rem; letter-spacing: 5px; text-transform: uppercase; opacity: 0.4; margin-bottom: 1rem; color: #000; text-align: center; }
.section-title { font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 200; letter-spacing: 2px; margin-bottom: 2rem; color: #000; line-height: 1.2; text-align: center; }
.section-title strong { font-weight: 700; }

.text-block { max-width: 800px; margin: 0 auto 4rem; text-align: left; }
.text-block h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 1.5rem; color: #000; }
.text-block p { font-size: 1.05rem; line-height: 1.9; opacity: 0.75; margin-bottom: 1.5rem; }
.text-block strong { color: #000; font-weight: 600; }

.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin: 4rem auto; max-width: 1200px; }
.two-col-text h4 { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; opacity: 0.5; }
.two-col-text p { font-size: 0.95rem; line-height: 1.8; opacity: 0.7; }

/* ===== PRODUCT CARDS (HOME) ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.product-card { border: 1px solid rgba(0,0,0,0.08); overflow: hidden; transition: border-color 0.3s, transform 0.3s; background: #fff; }
.product-card:hover { border-color: rgba(0,0,0,0.2); transform: translateY(-4px); }
.product-card img { width: 100%; height: 350px; object-fit: cover; }
.product-card .card-body { padding: 2.5rem; }
.product-card h3 { font-size: 1.8rem; font-weight: 300; letter-spacing: 4px; margin-bottom: 0.5rem; color: #000; }
.product-card .tag { font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.4; margin-bottom: 1.5rem; display: block; color: #000; }
.product-card p { opacity: 0.6; font-size: 0.95rem; margin-bottom: 2rem; color: #333; }

/* ===== PRODUCT PAGE HERO ===== */
.product-hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8rem 4rem 4rem; gap: 4rem; max-width: 1600px; margin: 0 auto; }
.product-hero .product-image img { width: 100%; border: 1px solid rgba(0,0,0,0.08); }
.product-hero .product-info h1 { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 200; letter-spacing: 8px; margin-bottom: 0.5rem; color: #000; }
.product-hero .product-info .subtitle { font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase; opacity: 0.4; margin-bottom: 2rem; color: #000; }
.product-hero .product-info p { opacity: 0.7; font-size: 1.05rem; max-width: 500px; margin-bottom: 2rem; color: #333; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; width: 100%; }
.feature-item { padding: 2rem; border: 1px solid rgba(0,0,0,0.06); background: #fafafa; }
.feature-item h4 { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; opacity: 0.5; color: #000; }
.feature-item p { font-size: 0.9rem; opacity: 0.7; color: #333; word-break: break-word; }

/* ===== SPECS TABLE ===== */
.specs-table { width: 100%; margin-top: 2rem; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.specs-table td { padding: 1rem; font-size: 0.9rem; color: #333; }
.specs-table td:first-child { opacity: 0.5; letter-spacing: 2px; text-transform: uppercase; font-size: 0.7rem; width: 30%; color: #000; }

/* ===== CONTACT FORM ===== */
.contact-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8rem 2rem; }
.contact-form { max-width: 600px; width: 100%; margin-top: 3rem; text-align: left; }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.5; margin-bottom: 0.5rem; color: #000; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; background: #fff; border: 1px solid rgba(0,0,0,0.15); color: #000; font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #000; }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ===== FOOTER ===== */
footer { padding: 3rem 4rem; border-top: 1px solid rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; opacity: 0.4; letter-spacing: 2px; color: #000; }
.divider { width: 60px; height: 1px; background: rgba(0,0,0,0.2); margin: 2rem 0; }

/* ===== ECOSYSTEM SPECIFICS ===== */
.flow-step-text { border-left: 2px solid #000; padding-left: 2rem; margin: 2rem 0; }
.flow-step-text p { margin-bottom: 0.5rem; font-size: 1rem; }
.flow-arrow { opacity: 0.2; margin: 0.5rem 0; font-size: 1.2rem; }
.macro-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.macro-num { font-size: 2rem; font-weight: 200; opacity: 0.2; line-height: 1; min-width: 40px; }

/* ===== WOOD FINISH & SHOWCASE GRIDS (FULL WIDTH) ===== */
.wood-finish-section { padding: 6rem 0; background: #fafafa; text-align: center; } 
.wood-finish-wrapper { width: 100%; margin: 0 auto; } 
.wood-finish-img { width: 100%; height: auto; border-radius: 0; box-shadow: none; margin-bottom: 2rem; } 
.wood-finish-text { font-size: 1rem; opacity: 0.7; max-width: 600px; margin: 0 auto 4rem; line-height: 1.6; text-align: center; padding: 0 2rem; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; margin-top: 0; } 
.showcase-grid img { width: 100%; height: auto; border-radius: 0; box-shadow: none; } 

/* ===== INTERACTIVE FINISH TOGGLE & VIEWER ===== */
.finish-showcase, .img-viewer { position: relative; width: 100%; margin: 0 auto 4rem; }
.finish-img, .img-viewer img { width: 100%; display: block; border-radius: 0; box-shadow: none; transition: opacity 0.4s ease; } 
.finish-img.noir, .img-viewer img.view-img { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.finish-showcase.active .finish-img.alu { opacity: 0; }
.finish-showcase.active .finish-img.noir { opacity: 1; pointer-events: auto; }
.img-viewer img.view-img.active { position: relative; opacity: 1; pointer-events: auto; }

.finish-toggle, .view-toggle { 
  position: absolute; top: 20px; right: 20px; z-index: 10; 
  background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px);
  border-radius: 30px; padding: 4px; display: flex; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
}
.finish-toggle button, .view-toggle button { 
  border: none; background: transparent; padding: 8px 16px; 
  font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; 
  cursor: pointer; border-radius: 25px; transition: all 0.3s; 
  font-weight: 600; color: rgba(255, 255, 255, 0.8); font-family: inherit;
}
.finish-toggle button.active, .view-toggle button.active { 
  background: rgba(255, 255, 255, 0.9); color: #000; 
}
.finish-toggle button:hover:not(.active), .view-toggle button:hover:not(.active) { 
  color: #fff; 
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 12, 0.95); z-index: 9999; justify-content: center; align-items: center; cursor: zoom-out; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 40px rgba(0,0,0,0.8); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.5rem; cursor: pointer; font-family: sans-serif; opacity: 0.6; transition: opacity 0.3s; line-height: 1; }
.lightbox-close:hover { opacity: 1; }
.lightbox { cursor: zoom-in; transition: opacity 0.3s; }
.lightbox:hover { opacity: 0.85; }

/* ===== MASTERLINK CONNECTIVITY SECTION ===== */
.masterlink-intro { max-width: 800px; margin: 0 auto 4rem; text-align: center; }
.masterlink-intro h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 1px; margin: 3rem 0 1rem; color: #000; }
.masterlink-intro p { font-size: 1rem; line-height: 1.8; opacity: 0.75; margin-bottom: 1.5rem; }
.masterlink-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin: 3rem 0; text-align: left; }
.masterlink-benefits div h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: #000; }
.masterlink-benefits div p { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; margin: 0; }
.adapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; text-align: left; }
.adapter-category h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem; color: #000; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.75rem; }
.adapter-item { margin-bottom: 1.5rem; }
.adapter-item strong { font-size: 0.85rem; font-weight: 600; color: #000; display: block; margin-bottom: 0.25rem; }
.adapter-item span { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; display: block; }

/* ===== 09APP SPECIFIC STYLES ===== */
.app-hero { background: #fafafa; padding: 10rem 4rem 6rem; text-align: center; }
.app-badge { display: inline-block; padding: 8px 20px; background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.1); border-radius: 24px; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2rem; color: #000; }
.mockup-container { display: flex; justify-content: center; margin: 4rem auto 0; max-width: 400px; }
.phone-mockup { width: 280px; height: 560px; background: #14161A; border-radius: 36px; border: 4px solid #2A2D33; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); position: relative; transition: transform 0.3s ease; }
.phone-mockup:hover { transform: translateY(-10px); }
.phone-screen { width: 100%; height: 100%; background: #0B0C0E; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #2A2D33; }
.phone-title { font-size: 14px; font-weight: 600; color: #E8B44A; letter-spacing: 1px; }
.phone-status { display: flex; gap: 8px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6FCF97; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.deck-card { background: #14161A; border: 1px solid #2A2D33; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: all 0.3s ease; }
.deck-card.active { border-color: #E8B44A; background: rgba(232, 180, 74, 0.05); }
.deck-number { font-size: 20px; font-weight: 200; color: #E8B44A; }
.deck-status { font-size: 9px; padding: 3px 6px; border-radius: 4px; text-align: center; font-weight: 600; letter-spacing: 0.5px; }
.deck-status.play { background: rgba(111, 207, 151, 0.2); color: #6FCF97; }
.deck-status.rec { background: rgba(224, 92, 92, 0.2); color: #E05C5C; }
.deck-status.stop { background: rgba(255, 255, 255, 0.1); color: #A0A4AB; }
.deck-controls { display: flex; justify-content: space-around; margin-top: auto; }
.control-btn { width: 20px; height: 20px; border-radius: 4px; background: #2A2D33; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #A0A4AB; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
.platform-card { padding: 2rem; border: 1px solid rgba(0,0,0,0.06); background: #fff; text-align: center; transition: all 0.3s ease; border-radius: 8px; }
.platform-card:hover { border-color: rgba(0,0,0,0.2); transform: translateY(-4px); }
.platform-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.platform-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: #000; }
.platform-card p { font-size: 0.9rem; opacity: 0.7; color: #333; }
.cta-section { background: #0a0a0c; color: #fff; padding: 8rem 4rem; text-align: center; }
.cta-section .section-label { color: #fff; opacity: 0.5; }
.cta-section .section-title { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: #000; border: 1px solid #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: #fff; color: #000; border-color: #fff; }

/* ===== RESPONSIVE / MOBILE FIXES ===== */
@media (max-width: 1024px) {
  .adapter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; flex-wrap: wrap; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 1rem; }
  nav ul li a { font-size: 0.65rem; letter-spacing: 1px; }
  section { padding: 4rem 0; } 
  .product-hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 2rem; gap: 2rem; }
  .product-hero .product-image img { max-height: 60vh; object-fit: contain; margin: 0 auto; }
  .product-card img { height: 250px; }
  .products-grid { grid-template-columns: 1fr; padding: 0 1.5rem; } 
  .two-col-text { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1rem; }
  .showcase-grid { grid-template-columns: 1fr; } 
  .adapter-grid { grid-template-columns: 1fr; }
  .finish-toggle, .view-toggle { top: 10px; right: 10px; padding: 2px; background: rgba(0, 0, 0, 0.6); }
  .finish-toggle button, .view-toggle button { padding: 6px 10px; font-size: 0.55rem; letter-spacing: 0.5px; }
  .app-hero { padding: 8rem 1.5rem 4rem; }
  .phone-mockup { width: 240px; height: 480px; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}