/* ==========================================================================
   4optik.toykunsolutions.com — Apple Liquid Frosted Glass Palette (Maffatest Style)
   ========================================================================== */

:root {
  /* Maffatest Apple Liquid Palette */
  --apple-gold: #e5b869;
  --apple-gold-hover: #fcd34d;
  --apple-gold-glow: rgba(229, 184, 105, 0.45);
  --apple-gold-subtle: rgba(229, 184, 105, 0.15);
  
  --bg-deep-space: #182338;
  --glass-card-bg: rgba(255, 255, 255, 0.08);
  --glass-card-hover: rgba(255, 255, 255, 0.13);
  --glass-blur: blur(40px) saturate(190%);
  
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-highlight: rgba(255, 255, 255, 0.55);
  --glass-inner-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 20px 45px rgba(8, 14, 25, 0.35);
  
  --silver-platinum: #d1d5db;
  --text-white: #ffffff;
  --text-body: #e0e9f4;
  --text-muted: #a3b8cf;

  --border-radius: 20px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #151e2e;
}

body {
  font-family: var(--font-body);
  background-color: #151e2e;
  background: radial-gradient(circle at 50% 0%, #202e48 0%, #172235 55%, #131c2b 100%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==================== APPLE AMBIENT LIQUID ORBS ==================== */
.ambient-mesh-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.38;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: 5%;
  left: 10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #e5b869 0%, rgba(229, 184, 105, 0) 70%);
}

.orb-2 {
  bottom: 10%;
  right: 5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  animation-duration: 22s;
}

.orb-3 {
  top: 45%;
  left: 55%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #818cf8 0%, rgba(129, 140, 248, 0) 70%);
  animation-duration: 15s;
}

.orb-4 {
  top: 70%;
  left: 5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #34d399 0%, rgba(52, 211, 153, 0) 70%);
  animation-duration: 25s;
}

@keyframes orb-drift {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 35, 56, 0.82);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}

.brand-num {
  color: var(--apple-gold);
  font-size: 2.2rem;
}

.brand-bang {
  color: var(--apple-gold);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(229, 184, 105, 0.15);
  border: 1px solid rgba(229, 184, 105, 0.4);
  color: var(--apple-gold);
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  color: var(--silver-platinum);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #fff;
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-wa-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Main Layout Grid */
.main-section {
  padding: 50px 0 80px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: flex-start;
}

/* Pill Badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid rgba(229, 184, 105, 0.35);
  color: var(--apple-gold);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--apple-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--apple-gold);
  animation: pulse 2s infinite;
}

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

/* Titles */
.main-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text-white);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e5b869 50%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-body);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.subtitle strong {
  color: var(--text-white);
}

/* Feature Items */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-inner-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
  background: var(--glass-card-hover);
  border-color: var(--glass-border-highlight);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(229, 184, 105, 0.2);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 2px;
}

.feature-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-text code {
  background: rgba(229, 184, 105, 0.18);
  color: #fcd34d;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--glass-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-shadow);
  padding: 20px 14px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--apple-gold);
  transform: translateY(-2px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--apple-gold);
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Right Column: Lead Form Card (Apple Frosted Glass) */
.form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(229, 184, 105, 0.15);
  position: sticky;
  top: 100px;
}

.form-header {
  margin-bottom: 24px;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-header p strong {
  color: var(--apple-gold);
}

/* Inputs & Form Groups */
.form-group {
  margin-bottom: 18px;
}

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

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver-platinum);
  margin-bottom: 7px;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 13px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--apple-gold);
  box-shadow: 0 0 18px var(--apple-gold-glow), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.12);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e5b869' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

select option {
  background-color: #182338;
  color: #fff;
}

textarea {
  resize: vertical;
}

/* Submit Button (Liquid Gold) */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e5b869 0%, #b88628 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  color: #0b0f19;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px var(--apple-gold-glow);
  margin-top: 10px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #e5b869 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(229, 184, 105, 0.6);
  color: #0b0f19;
}

.btn-arrow {
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.form-guarantee {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Success Box */
.success-box {
  text-align: center;
  padding: 24px 12px;
  animation: fadeIn 0.4s ease forwards;
}

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

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #34d399;
  color: #34d399;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.success-box h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.success-box p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-view-site {
  padding: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-view-site:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn-direct-wa {
  padding: 13px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-direct-wa:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 35px 0;
  background: rgba(20, 29, 46, 0.92);
  backdrop-filter: blur(20px);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--silver-platinum);
}

.text-gold {
  color: var(--apple-gold);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--apple-gold);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .main-title {
    font-size: 2.1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
