/* 
   OODA TRADER - Brand CSS Stylesheet
   Designed for premium dark mode aesthetics, glassmorphism, 
   smooth transitions, and responsive grid layouts.
*/

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

:root {
  /* Color Palette */
  --bg-color: #030303;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --primary-glow-start: #ffb703;
  --primary-glow-mid: #fb8500;
  --primary-glow-end: #ff006e;
  
  --btn-gradient: linear-gradient(135deg, var(--primary-glow-mid) 0%, var(--primary-glow-end) 100%);
  --btn-gradient-hover: linear-gradient(135deg, #ff9e00 0%, #ff187b 100%);
  
  --glass-bg: rgba(15, 15, 15, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(251, 133, 0, 0.4);
  
  /* Font Stacks */
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout constraints */
  --max-width: 1280px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base App Layout */
.app-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Ambient glow backgrounds */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(251, 133, 0, 0.07) 0%, rgba(255, 0, 110, 0.02) 50%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  animation: pulse 12s infinite alternate ease-in-out;
}

.glow-orb-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.05) 0%, rgba(251, 133, 0, 0.01) 60%, rgba(0,0,0,0) 80%);
  filter: blur(100px);
  animation: pulse 16s infinite alternate-reverse ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.15) translate(3%, 5%); opacity: 1; }
}

/* Header & Navigation */
header {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 72px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo-container img {
  height: 100%;
  width: auto;
  position: relative;
  z-index: 1; /* In case we need text behind/in front, text usually should be in front */
}

.logo-text {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0px;
  margin-left: -28px; /* Overlap the tail of the logo */
  margin-top: -12px; /* Nudge up to sit perfectly on the horizontal line */
  z-index: 2;
}

.logo-container:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Hero Main Layout */
.hero-container {
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

/* Left Content Section */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 580px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.tagline::after {
  content: ".";
  color: #ff006e;
  font-size: 24px;
  line-height: 0;
  margin-left: 2px;
}

.brand-divider {
  width: 48px;
  height: 2px;
  background: var(--btn-gradient);
  margin-bottom: 32px;
  border-radius: 2px;
}

.description {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.development-status {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-glow-mid);
  margin-bottom: 16px;
}

/* Call to Action Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--btn-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(251, 133, 0, 0.2);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(251, 133, 0, 0.35);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Right Graphic Section */
.hero-graphic-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.graphic-wrapper {
  position: relative;
  right: -20%;
  width: 140%;
  max-width: 800px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(2.5) brightness(0.6) saturate(1.2);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
  animation: slowFloat 8s infinite alternate ease-in-out;
}

@keyframes slowFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(2deg); }
}

/* Footer Section */
footer {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-email {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.footer-email:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Contact Dialog Modal Styles */
.contact-dialog {
  border: none;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  max-width: 540px;
  width: calc(100% - 32px);
  margin: auto;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dialog Backdrop styling */
.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* State when Dialog is Open */
.contact-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-dialog[open]::backdrop {
  opacity: 1;
}

/* Dialog Header elements */
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dialog-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.close-btn svg {
  stroke: var(--text-primary);
  width: 18px;
  height: 18px;
}

.dialog-subheader {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Contact Form controls */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--glass-border-focus);
  box-shadow: 0 0 16px rgba(251, 133, 0, 0.15);
}

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

/* Submit Button & States */
.submit-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--btn-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Loader Animation inside submit */
.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submitting .loader {
  display: inline-block;
}

/* Success and Error messages styles */
.form-status {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.4s ease forwards;
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.status-icon.success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-icon.success svg {
  stroke: #2ecc71;
  width: 32px;
  height: 32px;
}

.status-icon.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-icon.error svg {
  stroke: #e74c3c;
  width: 32px;
  height: 32px;
}

.form-status h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

.form-status p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 320px;
}

.status-btn {
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.status-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  header {
    padding: 32px 24px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px 60px 24px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  
  .brand-divider {
    margin: 0 auto 32px auto;
  }
  
  .hero-graphic-panel {
    order: -1; /* Place graphic at top in mobile stacked layout */
  }
  
  .graphic-wrapper {
    max-width: 380px;
  }
  
  footer {
    flex-direction: column;
    gap: 20px;
    padding: 32px 24px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  header {
    padding: 24px 16px;
    justify-content: center;
  }
  
  .logo-container {
    height: 38px;
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
  }
  
  .description {
    font-size: 15px;
    margin-bottom: 32px;
  }
  
  .cta-button {
    width: 100%;
    padding: 14px 28px;
  }

  .contact-dialog {
    padding: 28px 20px;
  }
  
  .dialog-header h2 {
    font-size: 22px;
  }
}
