/* ===========================
   GW Electric — Stylesheet
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --accent: #f78166;
  --accent2: #ff9500;
  --accent-dim: rgba(247, 129, 102, 0.15);
  --blue: #58a6ff;
  --green: #3fb950;
  --header-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: #e06e56; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.large { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-primary.full-width { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg3); }
.btn-ghost.large { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo-text { color: var(--accent); }

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}



.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--bg3); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.trade-badge {
  background: rgba(255, 149, 0, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(255, 149, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(247, 129, 102, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(88, 166, 255, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0a0e14 100%);
  pointer-events: none;
}

/* Grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 700px;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Notice Bar ── */
.notice-bar {
  background: rgba(255, 149, 0, 0.06);
  border-top: 1px solid rgba(255, 149, 0, 0.15);
  border-bottom: 1px solid rgba(255, 149, 0, 0.15);
  padding: 14px 0;
  font-size: 0.9rem;
}

.notice-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-bar a { color: var(--accent2); font-weight: 600; }
.notice-bar a:hover { text-decoration: underline; }

/* ── Section shared ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ── Products ── */
.products {
  padding: 100px 0;
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(247, 129, 102, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.product-card.featured {
  grid-column: span 2;
  border-color: rgba(247, 129, 102, 0.3);
  background: linear-gradient(135deg, var(--bg2) 60%, rgba(247,129,102,0.05) 100%);
}

.product-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}

.product-cat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-list {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.product-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-list li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.product-list li:last-child { border-bottom: none; }

.card-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 8px; }

/* ── About ── */
.about {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.3);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-point p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.2s;
}

.visual-card:hover { border-color: rgba(247,129,102,0.3); }

.visual-icon { font-size: 1.8rem; margin-bottom: 12px; }

.visual-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.visual-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Brands ── */
.brands {
  padding: 100px 0;
  background: var(--bg);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brand-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.brand-item:hover {
  color: var(--text);
  border-color: rgba(247,129,102,0.3);
  background: var(--bg3);
}

/* ── Contact ── */
.contact {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-item a, .contact-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-item a:hover { color: var(--accent); }

/* Form */
.contact-form-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select option { background: var(--bg2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247,129,102,0.1);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.form-success {
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--green);
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-text { color: var(--accent); font-weight: 800; font-size: 1.2rem; }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
}

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

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

.footer-col strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .hamburger { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .nav.open a {
    padding: 10px 14px;
    border-radius: 8px;
  }

  .product-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; }

  .hero-stats { gap: 28px; }
  .stat-num { font-size: 1.4rem; }

  .about-visual { grid-template-columns: 1fr 1fr; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary.large, .btn-ghost.large { width: 100%; text-align: center; }
  .hero-stats { gap: 20px; }
  .about-visual { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { padding: 24px 18px; }
}
